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.​ECDiffieHellmanPublicKey
Assembly: System.Security.Cryptography
Inheritance: object → ECDiffieHellmanPublicKey
Provides an abstract base class from which all <see cref="T:System.Security.Cryptography.ECDiffieHellmanCngPublicKey" /> implementations must inherit.
Methods
public
void
Dispose​()
Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.ECDiffieHellman" /> class.
protected
void
Dispose​(bool disposing)
disposing
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.
Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.ECDiffieHellman" /> class and optionally releases the managed resources.
public
ECParameters
ExportExplicitParameters​() Returns An object that represents the point on the curve for this key, using the explicit curve format.
When overridden in a derived class, exports the explicit <see cref="T:System.Security.Cryptography.ECParameters" /> for an <see cref="T:System.Security.Cryptography.ECCurve" /> object.
public
ECParameters
ExportParameters​() Returns An object that represents the point on the curve for this key.
When overridden in a derived class, exports the named or explicit <see cref="T:System.Security.Cryptography.ECParameters" /> for an <see cref="T:System.Security.Cryptography.ECCurve" /> object.
public
byte[]
ExportSubjectPublicKeyInfo​() 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​() 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
string
ToXmlString​() Returns An XML string that contains the serialized Elliptic Curve Diffie-Hellman (ECDH) public key.
Serializes the <see cref="T:System.Security.Cryptography.ECDiffieHellmanPublicKey" /> public key to an XML string.
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