CryptographicPrivateKeyBlobType CryptographicPrivateKeyBlobType CryptographicPrivateKeyBlobType CryptographicPrivateKeyBlobType Enum


Specifies the type of the private key contained in a buffer.

public : enum class CryptographicPrivateKeyBlobTypepublic enum CryptographicPrivateKeyBlobTypePublic Enum CryptographicPrivateKeyBlobType// You can use this enum in JavaScript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


BCryptEccFullPrivateKey BCryptEccFullPrivateKey BCryptEccFullPrivateKey BCryptEccFullPrivateKey
BCryptPrivateKey BCryptPrivateKey BCryptPrivateKey BCryptPrivateKey

Microsoft private key format defined by Cryptography API: Next Generation (CNG). For examples, see the following CNG structures:

Capi1PrivateKey Capi1PrivateKey Capi1PrivateKey Capi1PrivateKey

Microsoft private key format defined by the legacy Cryptography API (CAPI). For more information, see Base Provider Key BLOBs.

Pkcs1RsaPrivateKey Pkcs1RsaPrivateKey Pkcs1RsaPrivateKey Pkcs1RsaPrivateKey

The key is an RSA private key defined in the PKCS #1 standard. For more information, see the RSA Cryptography Specification in RFC 3347.

Pkcs8RawPrivateKeyInfo Pkcs8RawPrivateKeyInfo Pkcs8RawPrivateKeyInfo Pkcs8RawPrivateKeyInfo

This is the default value. The private key is encoded as an ASN.1 PrivateKeyInfo type defined in the PKCS#8 standard. The private key information syntax is defined as follows in RFC 5208.

PrivateKeyInfo ::= SEQUENCE {
  version                   Version,
  privateKeyAlgorithm       PrivateKeyAlgorithmIdentifier,
  privateKey                PrivateKey,
  attributes           [0]  IMPLICIT Attributes OPTIONAL }

Version ::= INTEGER

PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier

PrivateKey ::= OCTET STRING

Attributes ::= SET OF Attribute