Historical Content Alert

This is a historical content for Windows NT 4.0 product and is presented for informative purposes only. All content in this directory is copyrighted and owned by Microsoft.

KeySpec

The KeySpec property is used to specify the key type to be generated. For the Microsoft Base Cryptographic Provider, this will have a value of AT_KEYEXCHANGE for exchange keys, or AT_SIGNATURE for signature keys. However, this parameter is specific to the provider being used and may be any value that makes sense to the provider. The default for Microsoft Base Cryptographic Provider is AT_SIGNATURE. For information on the other Microsoft Cryptographic Service Providers, see Microsoft Cryptographic Service Providers in the CryptoAPI 2.0 documentation.

Data Type

[VB] DWORD

[C++] DWORD

Defined Values

Provider dependent. See your cryptographic service provider (CSP) for details.

Affects the behavior of the following methods:

createPKCS10
createFilePKCS10

Access Methods

[VB] "="operator

[C++] HRESULT get_KeySpec (DWORD);
HRESULT put_KeySpec (DWORD);

HRESULT

Value Meaning
S_OK The property read/write completed successfully.


Share this article: