Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CERT_KEY_ATTRIBUTES_INFO

Windows CE 3.0

This structure contains optional additional information about the public key being certified. It can include a key identifier, an indication of the intended use of that key, or an indication of the period of use of the corresponding private key.

The CryptDecodeObject function creates an instance of this structure when performed on a CERT_EXTENSION structure's Value member with the structure's pszObjId member set to szOID_KEY_ATTRIBUTES.

An instance of this structure can be used as input to the CryptEncodeObject function to create an appropriate CERT_EXTENSION structure.

typedef struct _CERT_KEY_ATTRIBUTES_INFO {
CRYPT_DATA_BLOB KeyId;
CRYPT_BIT_BLOB IntendedKeyUsage;
PCERT_PRIVATE_KEY_VALIDITY pPrivateKeyUsagePeriod;  // optional
} CERT_KEY_ATTRIBUTES_INFO,  *PCERT_KEY_ATTRIBUTES_INFO;

Members

KeyId
The CRYPT_DATA_BLOB structure with a unique identifier of a key.
IntendedKeyUsage
The CRYPT_BIT_BLOB structure with its pbData member indicating the intended purpose of the key. See the RestrictedKeyUsage member of CERT_KEY_USAGE_RESTRICTION_INFO for a list of usage bit values.

This member can be used to find the correct key or certificate of a user who has multiple keys or certificates. Its indication of usage is an advisory field only and does not imply that usage of the key is restricted to the purpose indicated. The list of intended uses is not necessarily all-inclusive, and the field can be omitted. If a key is to be restricted to a particular use, a CERT_KEY_USAGE_RESTRICTION_INFO extension must be used.

pPrivateKeyUsagePeriod
Pointer to a CERT_PRIVATE_KEY_VALIDITY structure that indicates the period of use of the private key corresponding to the certified public key. This member is optional and can be set to NULL.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 or later Wincrypt.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

BLOB, CERT_EXTENSION, CERT_KEY_USAGE_RESTRICTION_INFO, CERT_PRIVATE_KEY_VALIDITY, CRYPT_BIT_BLOB, CRYPT_DATA_BLOB


 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.

Show:
© 2014 Microsoft