CryptographicPrivateKeyBlobType CryptographicPrivateKeyBlobType CryptographicPrivateKeyBlobType CryptographicPrivateKeyBlobType CryptographicPrivateKeyBlobType Enum

Definition

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

public : enum class CryptographicPrivateKeyBlobType
enum class winrt::Windows::Security::Cryptography::Core::CryptographicPrivateKeyBlobType : int32_t
public enum CryptographicPrivateKeyBlobType
Public Enum CryptographicPrivateKeyBlobType
var value = Windows.Security.Cryptography.Core.CryptographicPrivateKeyBlobType.bCryptEccFullPrivateKey;
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

BCryptEccFullPrivateKey BCryptEccFullPrivateKey BCryptEccFullPrivateKey BCryptEccFullPrivateKey BCryptEccFullPrivateKey 4
BCryptPrivateKey BCryptPrivateKey BCryptPrivateKey BCryptPrivateKey BCryptPrivateKey 2

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

Capi1PrivateKey Capi1PrivateKey Capi1PrivateKey Capi1PrivateKey Capi1PrivateKey 3

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

Pkcs1RsaPrivateKey Pkcs1RsaPrivateKey Pkcs1RsaPrivateKey Pkcs1RsaPrivateKey Pkcs1RsaPrivateKey 1

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 Pkcs8RawPrivateKeyInfo 0

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