Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The X509PrivateKeyUsageFlags enumeration specifies the permitted uses of a private key. It is the responsibility of the cryptographic provider. The enumeration value can be set and retrieved by using the KeyUsage property on the IX509PrivateKey interface.
Syntax
typedef enum X509PrivateKeyUsageFlags {
XCN_NCRYPT_ALLOW_USAGES_NONE = 0,
XCN_NCRYPT_ALLOW_DECRYPT_FLAG = 0x1,
XCN_NCRYPT_ALLOW_SIGNING_FLAG = 0x2,
XCN_NCRYPT_ALLOW_KEY_AGREEMENT_FLAG = 0x4,
XCN_NCRYPT_ALLOW_KEY_IMPORT_FLAG = 0x8,
XCN_NCRYPT_ALLOW_ALL_USAGES = 0xffffff
} ;
Constants
XCN_NCRYPT_ALLOW_USAGES_NONEValue: 0 The permitted uses are not defined. |
XCN_NCRYPT_ALLOW_DECRYPT_FLAGValue: 0x1 The key can be used to decrypt content. This maps to the following X509KeyUsageFlags values:
|
XCN_NCRYPT_ALLOW_SIGNING_FLAGValue: 0x2 The key can be used for signing. This maps to the following X509KeyUsageFlags values:
|
XCN_NCRYPT_ALLOW_KEY_AGREEMENT_FLAGValue: 0x4 The key can be used to establish key agreement between entities. |
XCN_NCRYPT_ALLOW_KEY_IMPORT_FLAGValue: 0x8 |
XCN_NCRYPT_ALLOW_ALL_USAGESValue: 0xffffff All of the uses defined for this enumeration are permitted. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Header | certenroll.h |