ICspAlgorithm interface

The ICspAlgorithm interface represents an algorithm implemented by a cryptographic provider. Providers are separate modules that implement encryption, hashing, signing, and key exchange (archival) algorithms. Similar providers are grouped together in a type. For example, the PROV_RSA_FULL type identifies providers that typically support the following algorithms. An individual provider can, however, choose to support fewer or more algorithms than those listed.

  • Encryption: RC2, RC4
  • Hashing: MD5, SHA
  • Key Exchange: RSA
  • Signature: RSA
For more information, see Microsoft Cryptographic Service Providers.

A collection of ICspAlgorithm objects can be retrieved from an ICspInformation object. The ICspInformation object can be initialized from a provider name or type.

Members

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

Methods

The ICspAlgorithm interface has these methods.

MethodDescription
GetAlgorithmOid

Retrieves the algorithm object identifier (OID).

[WebEnabled]

 

Properties

The ICspAlgorithm interface has these properties.

PropertyAccess typeDescription

DefaultLength

Read-only

Retrieves the default length of a key.

[WebEnabled]

IncrementLength

Read-only

Retrieves a value, in bits, that can be used to determine valid incremental key lengths for algorithms that support multiple key sizes.

[WebEnabled]

LongName

Read-only

Retrieves the full name of the algorithm.

MaxLength

Read-only

Retrieves the maximum permitted length for a key.

[WebEnabled]

MinLength

Read-only

Retrieves the minimum permitted length for a key.

[WebEnabled]

Name

Read-only

Retrieves the abbreviated algorithm name.

[WebEnabled]

Operations

Read-only

Retrieves the operations that can be performed by the algorithm.

[WebEnabled]

Type

Read-only

Retrieves the algorithm type.

[WebEnabled]

Valid

Read-only

Retrieves a Boolean value that specifies whether the algorithm object is valid.

 

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

CertEnroll Interfaces
Cryptographic Service Providers

 

 

Community Additions

ADD
Show:
© 2015 Microsoft