CryptographicPrivateKeyBlobType Enum

Definition

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

public enum class CryptographicPrivateKeyBlobType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CryptographicPrivateKeyBlobType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CryptographicPrivateKeyBlobType
var value = Windows.Security.Cryptography.Core.CryptographicPrivateKeyBlobType.pkcs8RawPrivateKeyInfo
Public Enum CryptographicPrivateKeyBlobType
Inheritance
CryptographicPrivateKeyBlobType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

BCryptEccFullPrivateKey 4

The key is a BCrypt full elliptic curve cryptography (ECC) private key.

BCryptPrivateKey 2

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

Capi1PrivateKey 3

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

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

Applies to