Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

KeyIdentifierHashAlgorithm enumeration

The KeyIdentifierHashAlgorithm enumeration type specifies the algorithm used to hash the public key in a certificate request. This enumeration is used by the ComputeKeyIdentifier method on the IX509PublicKey interface, and the key identifier can be used to initialize the IX509ExtensionSubjectKeyIdentifier and IX509ExtensionAuthorityKeyIdentifier objects.

Syntax


typedef enum KeyIdentifierHashAlgorithm { 
  SKIHashDefault   = 0,
  SKIHashSha1      = 1,
  SKIHashCapiSha1  = 2,
  SKIHashSha256    = 3
} KeyIdentifierHashAlgorithm;

Constants

SKIHashDefault

The default hash algorithm. This is redundant with the SKIHashSha1 value.

SKIHashSha1

A 160-bit SHA-1 hash of a Distinguished Encoding Rules (DER) encoded public key, excluding the tag, length, and number of unused bits.

SKIHashCapiSha1

A 160-bit SHA-1 hash of a DER-encoded public key, including the tag, length, and number of unused bits.

SKIHashSha256

A 256-bit SHA256 (SHA-2) hash of a DER-encoded public key, including the tag, length, and number of unused bits.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

See also

CertEnroll Enumerations
CertEnroll Interfaces
ComputeKeyIdentifier
IX509ExtensionAuthorityKeyIdentifier
IX509ExtensionSubjectKeyIdentifier
IX509PublicKey

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.