ICspInformation interface

The ICspInformation interface provides access to general information about a cryptographic provider. The information is initialized by calling the InitializeFromName or InitializeFromType method. The information is retrieved by using the following methods and properties. For information about CSPs, see CSPs and the Cryptography Process.

Members

The ICspInformation interface inherits from the IDispatch interface. ICspInformation also has these types of members:

Methods

The ICspInformation interface has these methods.

MethodDescription
GetCspStatusFromOperations

Creates an ICspStatus object for the first supported algorithm that is consistent with the specified signature, encryption, hashing, or cipher operation.

GetDefaultSecurityDescriptor

Retrieves the default private key security descriptor.

InitializeFromName

Initializes the object from a string that contains a provider name.

[WebEnabled]

InitializeFromType

Initializes the object from the default cryptographic provider.

 

Properties

The ICspInformation interface has these properties.

PropertyDescription

CspAlgorithms

Retrieves a collection of ICspAlgorithm interfaces that contain information about the algorithms supported by the provider.

[WebEnabled]

HasHardwareRandomNumberGenerator

Retrieves a Boolean value that specifies whether the provider supports a hardware random number generator that can be used to create random bytes for cryptographic operations.

IsHardwareDevice

Retrieves a Boolean value that determines whether the provider is implemented in a hardware device.

IsRemovable

Retrieves a Boolean value that specifies whether the token that contains the key can be removed.

IsSmartCard

Retrieves a Boolean value that specifies whether the provider is a smart card provider.

IsSoftwareDevice

Retrieves a Boolean value that specifies whether the provider is implemented in software.

KeySpec

Retrieves a value that specifies the intended use of the algorithms supported by the provider.

[WebEnabled]

LegacyCsp

Retrieves a Boolean value that specifies whether the provider is a Cryptography API: Next Generation (CNG) provider or a CryptoAPI (legacy) CSP.

[WebEnabled]

MaxKeyContainerNameLength

Retrieves the maximum supported length for the name of the private key container associated with the provider.

Name

Retrieves the name of the provider.

[WebEnabled]

Type

Retrieves the type of the provider.

[WebEnabled]

Valid

Retrieves a Boolean value that specifies whether the provider is installed on the client computer.

Version

Retrieves the version number of the provider.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

DLL

CertEnroll.dll

See also

IDispatch
CertEnroll Interfaces
ICspInformations

 

 

Community Additions

ADD
Show: