CryptographicPrivateKeyBlobType 枚举

定义

指定缓冲区中包含的私钥的类型。

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
继承
CryptographicPrivateKeyBlobType
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

BCryptEccFullPrivateKey 4

密钥是 BCrypt 全椭圆曲线加密 (ECC) 私钥。

BCryptPrivateKey 2

加密 API 定义的 Microsoft 私钥格式:下一代 (CNG) 。 有关示例,请参阅以下 CNG 结构:

Capi1PrivateKey 3

由旧加密 API 定义的 Microsoft 私钥格式 (CAPI) 。 有关详细信息,请参阅 基本提供程序密钥 BLOB

Pkcs1RsaPrivateKey 1

密钥是在 PKCS #1 标准中定义的 RSA 私钥。 有关详细信息,请参阅 RFC 3347 中的 RSA 加密规范。

Pkcs8RawPrivateKeyInfo 0

这是默认值。 私钥编码为在 PKCS#8 标准中定义的 ASN.1 PrivateKeyInfo 类型。 私钥信息语法在 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

适用于