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

適用於