ECDiffieHellmanCngPublicKey ECDiffieHellmanCngPublicKey ECDiffieHellmanCngPublicKey ECDiffieHellmanCngPublicKey Class


指定与 ECDiffieHellmanCng 类一起使用的椭圆曲线 Diffie-Hellman (ECDH) 公钥。Specifies an Elliptic Curve Diffie-Hellman (ECDH) public key for use with the ECDiffieHellmanCng class.

public ref class ECDiffieHellmanCngPublicKey sealed : System::Security::Cryptography::ECDiffieHellmanPublicKey
public sealed class ECDiffieHellmanCngPublicKey : System.Security.Cryptography.ECDiffieHellmanPublicKey
type ECDiffieHellmanCngPublicKey = class
    inherit ECDiffieHellmanPublicKey
Public NotInheritable Class ECDiffieHellmanCngPublicKey
Inherits ECDiffieHellmanPublicKey


ECDiffieHellmanCngPublicKey对象用于与ECDiffieHellmanCng对象进行密钥交换。ECDiffieHellmanCngPublicKey objects are used in key exchanges with ECDiffieHellmanCng objects.


BlobFormat BlobFormat BlobFormat BlobFormat

获取 ECDiffieHellmanCngPublicKey 对象的密钥 BLOB 格式。Gets the key BLOB format for a ECDiffieHellmanCngPublicKey object.


Dispose() Dispose() Dispose() Dispose()

释放 ECDiffieHellman 类的当前实例所使用的所有资源。Releases all resources used by the current instance of the ECDiffieHellman class.

(Inherited from ECDiffieHellmanPublicKey)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放 ECDiffieHellman 类使用的非托管资源,并可以选择释放托管资源。Releases the unmanaged resources used by the ECDiffieHellman class and optionally releases the managed resources.

(Inherited from ECDiffieHellmanPublicKey)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExportExplicitParameters() ExportExplicitParameters() ExportExplicitParameters() ExportExplicitParameters()

ECCurve 对象使用的密钥和显式曲线参数导出到 ECParameters 对象。Exports the key and explicit curve parameters used by the ECCurve object into an ECParameters object.

ExportParameters() ExportParameters() ExportParameters() ExportParameters()

ECCurve 对象使用的密钥导出到 ECParameters 对象。Exports the key used by the ECCurve object into an ECParameters object.

FromByteArray(Byte[], CngKeyBlobFormat) FromByteArray(Byte[], CngKeyBlobFormat) FromByteArray(Byte[], CngKeyBlobFormat) FromByteArray(Byte[], CngKeyBlobFormat)

根据指定的格式,将包含公钥的字节数组转换为 ECDiffieHellmanCngPublicKey 对象。Converts a byte array that contains a public key to a ECDiffieHellmanCngPublicKey object according to the specified format.

FromXmlString(String) FromXmlString(String) FromXmlString(String) FromXmlString(String)

将 XML 字符串转换为 ECDiffieHellmanCngPublicKey 对象。Converts an XML string to an ECDiffieHellmanCngPublicKey object.

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

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
Import() Import() Import() Import()

ECDiffieHellmanCngPublicKey 对象转换为 CngKey 对象。Converts the ECDiffieHellmanCngPublicKey object to a CngKey object.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToByteArray() ToByteArray() ToByteArray() ToByteArray()

ECDiffieHellmanPublicKey 密钥 BLOB 序列化为字节数组。Serializes the ECDiffieHellmanPublicKey key BLOB to a byte array.

(Inherited from ECDiffieHellmanPublicKey)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
ToXmlString() ToXmlString() ToXmlString() ToXmlString()

ECDiffieHellmanCngPublicKey 公钥序列化为 RFC 4050 格式的 XML 字符。Serializes the ECDiffieHellmanCngPublicKey public key to an XML string in RFC 4050 format.