ECDiffieHellmanCngPublicKey Class

Definition

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
[System.Serializable]
public sealed class ECDiffieHellmanCngPublicKey : System.Security.Cryptography.ECDiffieHellmanPublicKey
type ECDiffieHellmanCngPublicKey = class
    inherit ECDiffieHellmanPublicKey
[<System.Serializable>]
type ECDiffieHellmanCngPublicKey = class
    inherit ECDiffieHellmanPublicKey
Public NotInheritable Class ECDiffieHellmanCngPublicKey
Inherits ECDiffieHellmanPublicKey
Inheritance
ECDiffieHellmanCngPublicKey
Attributes

Remarks

ECDiffieHellmanCngPublicKey objects are used in key exchanges with ECDiffieHellmanCng objects.

Properties

BlobFormat

Gets the key BLOB format for a ECDiffieHellmanCngPublicKey object.

Methods

Dispose()

Releases all resources used by the current instance of the ECDiffieHellman class.

(Inherited from ECDiffieHellmanPublicKey)
Dispose(Boolean)

Releases the unmanaged resources used by the ECDiffieHellman class and optionally releases the managed resources.

(Inherited from ECDiffieHellmanPublicKey)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExportExplicitParameters()

Exports the key and explicit curve parameters used by the ECCurve object into an ECParameters object.

ExportExplicitParameters()

When overridden in a derived class, exports the explicit ECParameters for an ECCurve object.

(Inherited from ECDiffieHellmanPublicKey)
ExportParameters()

Exports the key used by the ECCurve object into an ECParameters object.

ExportParameters()

When overridden in a derived class, exports the named or explicit ECParameters for an ECCurve object.

(Inherited from ECDiffieHellmanPublicKey)
ExportSubjectPublicKeyInfo()

Exports the current key in the X.509 SubjectPublicKeyInfo format.

(Inherited from ECDiffieHellmanPublicKey)
FromByteArray(Byte[], CngKeyBlobFormat)

Converts a byte array that contains a public key to a ECDiffieHellmanCngPublicKey object according to the specified format.

FromXmlString(String)
Obsolete.

Converts an XML string to an ECDiffieHellmanCngPublicKey object.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Import()

Converts the ECDiffieHellmanCngPublicKey object to a CngKey object.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToByteArray()
Obsolete.

Serializes the ECDiffieHellmanPublicKey key BLOB to a byte array.

(Inherited from ECDiffieHellmanPublicKey)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToXmlString()
Obsolete.

Serializes the ECDiffieHellmanCngPublicKey public key to an XML string in RFC 4050 format.

TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)

Attempts to export the current key in the X.509 SubjectPublicKeyInfo format.

(Inherited from ECDiffieHellmanPublicKey)

Applies to