CRYPT_ENCRYPTED_PRIVATE_KEY_INFO structure (wincrypt.h)

[The CRYPT_ENCRYPTED_PRIVATE_KEY_INFO structure is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

The CRYPT_ENCRYPTED_PRIVATE_KEY_INFO structure contains the information in a PKCS #8 EncryptedPrivateKeyInfo ASN.1 type found in the PKCS #8 standard.

Syntax

typedef struct _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO {
  CRYPT_ALGORITHM_IDENTIFIER EncryptionAlgorithm;
  CRYPT_DATA_BLOB            EncryptedPrivateKey;
} CRYPT_ENCRYPTED_PRIVATE_KEY_INFO, *PCRYPT_ENCRYPTED_PRIVATE_KEY_INFO;

Members

EncryptionAlgorithm

A CRYPT_ALGORITHM_IDENTIFIER structure that indicates the algorithm used for encryption.

EncryptedPrivateKey

A CRYPT_DATA_BLOB structure that contains the encrypted private key data.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header wincrypt.h

See also

CRYPT_ALGORITHM_IDENTIFIER

CryptExportPKCS8Ex

PCRYPT_DECRYPT_PRIVATE_KEY_FUNC

PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC