ObjectIdPublicKeyFlags enumeration (certenroll.h)

The ObjectIdPublicKeyFlags enumeration type specifies whether a public key algorithm is used for signing or for encryption. Some algorithms, such as RSA, can be used for both purposes. This enumeration is used by the InitializeFromAlgorithmName method on the IObjectId interface to narrow and disambiguate the algorithm search.

Syntax

typedef enum ObjectIdPublicKeyFlags {
  XCN_CRYPT_OID_INFO_PUBKEY_ANY = 0,
  XCN_CRYPT_OID_INFO_PUBKEY_SIGN_KEY_FLAG = 0x80000000,
  XCN_CRYPT_OID_INFO_PUBKEY_ENCRYPT_KEY_FLAG = 0x40000000
} ;

Constants

 
XCN_CRYPT_OID_INFO_PUBKEY_ANY
Value: 0
The algorithm can be used for signing or encryption.
XCN_CRYPT_OID_INFO_PUBKEY_SIGN_KEY_FLAG
Value: 0x80000000
The algorithm is used for signing.
XCN_CRYPT_OID_INFO_PUBKEY_ENCRYPT_KEY_FLAG
Value: 0x40000000
The algorithm is used for encryption.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header certenroll.h

See also

CertEnroll Enumerations

InitializeFromAlgorithmName