CngKeyBlobFormat CngKeyBlobFormat CngKeyBlobFormat CngKeyBlobFormat Class

定义

指定与 Microsoft 下一代加密技术 (CNG) 对象一起使用的密钥 BLOB 格式。Specifies a key BLOB format for use with Microsoft Cryptography Next Generation (CNG) objects.

public ref class CngKeyBlobFormat sealed : IEquatable<System::Security::Cryptography::CngKeyBlobFormat ^>
[System.Serializable]
public sealed class CngKeyBlobFormat : IEquatable<System.Security.Cryptography.CngKeyBlobFormat>
type CngKeyBlobFormat = class
    interface IEquatable<CngKeyBlobFormat>
Public NotInheritable Class CngKeyBlobFormat
Implements IEquatable(Of CngKeyBlobFormat)
继承
CngKeyBlobFormatCngKeyBlobFormatCngKeyBlobFormatCngKeyBlobFormat
属性
实现

注解

CngKeyBlobFormat类是一个实用工具类。The CngKeyBlobFormat class is a utility class. 它由静态属性、比较方法和用于指定密钥 BLOB 格式名称的私有、内部维护的字符串组成。It consists of static properties, comparison methods, and a private, internally maintained string that specifies the key BLOB format name.

静态属性返回CngKeyBlobFormat对象。The static properties return CngKeyBlobFormat objects. 每个对象的内部字符串名称初始化为与静态属性的名称相对应的密钥 BLOB 格式名称。Each object's internal string name is initialized to the key BLOB format name that corresponds to the name of the static property.

你还可以使用此类为静态属性未涵盖的密钥 BLOB 格式创建对象。You can also use this class to create objects for key BLOB formats that are not covered by the static properties.

多个 CNG 类 (如CngKey) 通过CngKeyBlobFormat format参数接受对象。Several CNG classes (such as CngKey) accept CngKeyBlobFormat objects through a format parameter. 当类接收CngKeyBlobFormat对象时, 它通过调用对象的Format属性来检索密钥 BLOB 格式的嵌入名称。When the class receives the CngKeyBlobFormat object, it retrieves the embedded name of the key BLOB format by calling the object's Format property.

因此, CngKeyBlobFormat用作众所周知的密钥 BLOB 格式的枚举。Therefore, CngKeyBlobFormat serves as an enumeration of well-known key BLOB formats. 使用强类型化值 (而不是字符串), 可以识别众所周知的密钥 BLOB 格式。It lets you identify a well-known key BLOB format by using a strongly typed value instead of a string.

构造函数

CngKeyBlobFormat(String) CngKeyBlobFormat(String) CngKeyBlobFormat(String) CngKeyBlobFormat(String)

使用指定的格式初始化 CngKeyBlobFormat 类的一个新实例。Initializes a new instance of the CngKeyBlobFormat class by using the specified format.

属性

EccFullPrivateBlob EccFullPrivateBlob EccFullPrivateBlob EccFullPrivateBlob

获取 CngKeyBlobFormat 对象,此对象指定包含显式曲线参数的椭圆曲线加密 (ECC) 密钥的私钥 BLOB。Gets a CngKeyBlobFormat object that specifies a private key BLOB for an elliptic curve cryptography (ECC) key which contains explicit curve parameters.

EccFullPublicBlob EccFullPublicBlob EccFullPublicBlob EccFullPublicBlob

获取 CngKeyBlobFormat 对象,此对象指定包含显式曲线参数的椭圆曲线加密 (ECC) 密钥的公钥 BLOB。Gets a CngKeyBlobFormat object that specifies a public key BLOB for an elliptic curve cryptography (ECC) key which contains explicit curve parameters.

EccPrivateBlob EccPrivateBlob EccPrivateBlob EccPrivateBlob

获取一个 CngKeyBlobFormat 对象,它指定椭圆曲线加密法 (ECC) 密钥的私钥 BLOB。Gets a CngKeyBlobFormat object that specifies a private key BLOB for an elliptic curve cryptography (ECC) key.

EccPublicBlob EccPublicBlob EccPublicBlob EccPublicBlob

获取一个 CngKeyBlobFormat 对象,它指定椭圆曲线加密法 (ECC) 密钥的公钥 BLOB。Gets a CngKeyBlobFormat object that specifies a public key BLOB for an elliptic curve cryptography (ECC) key.

Format Format Format Format

获取当前 CngKeyBlobFormat 对象指定的密钥 BLOB 格式的名称。Gets the name of the key BLOB format that the current CngKeyBlobFormat object specifies.

GenericPrivateBlob GenericPrivateBlob GenericPrivateBlob GenericPrivateBlob

获取一个指定泛型私钥 BLOB 的 CngKeyBlobFormat 对象。Gets a CngKeyBlobFormat object that specifies a generic private key BLOB.

GenericPublicBlob GenericPublicBlob GenericPublicBlob GenericPublicBlob

获取一个指定泛型公钥 BLOB 的 CngKeyBlobFormat 对象。Gets a CngKeyBlobFormat object that specifies a generic public key BLOB.

OpaqueTransportBlob OpaqueTransportBlob OpaqueTransportBlob OpaqueTransportBlob

获取一个指定不透明传输密钥 BLOB 的 CngKeyBlobFormat 对象。Gets a CngKeyBlobFormat object that specifies an opaque transport key BLOB.

Pkcs8PrivateBlob Pkcs8PrivateBlob Pkcs8PrivateBlob Pkcs8PrivateBlob

获取一个 CngKeyBlobFormat 对象,它指定私钥信息语法标准 (PKCS #8) 密钥 BLOB。Gets a CngKeyBlobFormat object that specifies a Private Key Information Syntax Standard (PKCS #8) key BLOB.

方法

Equals(CngKeyBlobFormat) Equals(CngKeyBlobFormat) Equals(CngKeyBlobFormat) Equals(CngKeyBlobFormat)

将指定的 CngKeyBlobFormat 对象与当前的 CngKeyBlobFormat 对象进行比较。Compares the specified CngKeyBlobFormat object to the current CngKeyBlobFormat object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将指定的对象与当前的 CngKeyBlobFormat 对象进行比较。Compares the specified object to the current CngKeyBlobFormat object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

为当前 CngKeyBlobFormat 对象中的嵌入密钥 BLOB 格式生成一个哈希值。Generates a hash value for the embedded key BLOB format in the current CngKeyBlobFormat object.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

获取当前 CngKeyBlobFormat 对象指定的密钥 BLOB 格式的名称。Gets the name of the key BLOB format that the current CngKeyBlobFormat object specifies.

操作员

Equality(CngKeyBlobFormat, CngKeyBlobFormat) Equality(CngKeyBlobFormat, CngKeyBlobFormat) Equality(CngKeyBlobFormat, CngKeyBlobFormat) Equality(CngKeyBlobFormat, CngKeyBlobFormat)

确定两个 CngKeyBlobFormat 对象是否指定了相同的密钥 BLOB 格式。Determines whether two CngKeyBlobFormat objects specify the same key BLOB format.

Inequality(CngKeyBlobFormat, CngKeyBlobFormat) Inequality(CngKeyBlobFormat, CngKeyBlobFormat) Inequality(CngKeyBlobFormat, CngKeyBlobFormat) Inequality(CngKeyBlobFormat, CngKeyBlobFormat)

确定两个 CngKeyBlobFormat 对象是否未指定相同的密钥 BLOB 格式。Determines whether two CngKeyBlobFormat objects do not specify the same key BLOB format.

适用于