This topic has not yet been rated - Rate this topic

ObjectIdPublicKeyFlags enumeration

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  { 
  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
} ObjectIdPublicKeyFlags;

Constants

XCN_CRYPT_OID_INFO_PUBKEY_ANY

The algorithm can be used for signing or encryption.

XCN_CRYPT_OID_INFO_PUBKEY_SIGN_KEY_FLAG

The algorithm is used for signing.

XCN_CRYPT_OID_INFO_PUBKEY_ENCRYPT_KEY_FLAG

The algorithm is used for encryption.

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
InitializeFromAlgorithmName

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.