Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​ECDiffieHellmanCngPublicKey
Assembly: System.Security.Cryptography
Inheritance: object → ECDiffieHellmanPublicKey → ECDiffieHellmanCngPublicKey
Specifies an Elliptic Curve Diffie-Hellman (ECDH) public key for use with the <see cref="T:System.Security.Cryptography.ECDiffieHellmanCng" /> class.
Properties
public
CngKeyBlobFormat
BlobFormat
Gets the key BLOB format for a <see cref="T:System.Security.Cryptography.ECDiffieHellmanCngPublicKey" /> object.
Methods
protected
void
Dispose​(bool disposing)
public
ECParameters
ExportExplicitParameters​() Returns The key and explicit curve parameters used by the <see cref="T:System.Security.Cryptography.ECCurve" /> object.
Exports the key and explicit curve parameters used by the <see cref="T:System.Security.Cryptography.ECCurve" /> object into an <see cref="T:System.Security.Cryptography.ECParameters" /> object.
public
ECParameters
ExportParameters​() Returns The key and named curve parameters used by the <see cref="T:System.Security.Cryptography.ECCurve" /> object.
Exports the key used by the <see cref="T:System.Security.Cryptography.ECCurve" /> object into an <see cref="T:System.Security.Cryptography.ECParameters" /> object.
public
CngKey
Import​() Returns An object that contains the key represented by the <see cref="T:System.Security.Cryptography.ECDiffieHellmanCngPublicKey" /> object.
Converts the <see cref="T:System.Security.Cryptography.ECDiffieHellmanCngPublicKey" /> object to a <see cref="T:System.Security.Cryptography.CngKey" /> object.
public
string
ToXmlString​() Returns An XML string that contains the serialized <see cref="T:System.Security.Cryptography.ECDiffieHellmanCngPublicKey" /> public key.
Serializes the <see cref="T:System.Security.Cryptography.ECDiffieHellmanCngPublicKey" /> public key to an XML string in RFC 4050 format.
Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.ECDiffieHellman" /> class.
public
byte[]
ExportSubjectPublicKeyInfo​()
Inherited from ECDiffieHellmanPublicKey
Returns A byte array containing the X.509 SubjectPublicKeyInfo representation of this key.
Exports the current key in the X.509 SubjectPublicKeyInfo format.
public
byte[]
ToByteArray​()
Inherited from ECDiffieHellmanPublicKey
Returns A byte array that contains the serialized Elliptic Curve Diffie-Hellman (ECDH) public key.
Serializes the <see cref="T:System.Security.Cryptography.ECDiffieHellmanPublicKey" /> key BLOB to a byte array.
public
bool
TryExportSubjectPublicKeyInfo​(Span`1 destination,
Int32& bytesWritten)
Inherited from ECDiffieHellmanPublicKey
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object