CryptographicPublicKeyBlobType Enum

Definition

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

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

Windows requirements

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

Fields

BCryptEccFullPublicKey 4

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

BCryptPublicKey 2

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

Capi1PublicKey 3

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

Pkcs1RsaPublicKey 1

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

X509SubjectPublicKeyInfo 0

This is the default value. The public key is encoded as an ASN.1 SubjectPublicKeyInfo type defined in RFC 5280 and RFC 3280.

SubjectPublicKeyInfo  ::=  SEQUENCE  {
    algorithm            AlgorithmIdentifier,
    subjectPublicKey     BIT STRING  }

Applies to