ECDiffieHellmanOpenSsl Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an implementation of the Elliptic Curve Diffie-Hellman (ECDH) algorithm backed by OpenSSL.
public ref class ECDiffieHellmanOpenSsl sealed : System::Security::Cryptography::ECDiffieHellman
public sealed class ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECDiffieHellman
type ECDiffieHellmanOpenSsl = class
inherit ECDiffieHellman
Public NotInheritable Class ECDiffieHellmanOpenSsl
Inherits ECDiffieHellman
- Inheritance
- Inheritance
This class should only be used directly when doing platform interop with the system OpenSSL library. When platform interop is not needed, you should use the ECDiffieHellman.Create factory methods instead of a specific derived implementation.
ECDiffie |
Initializes a new instance of the ECDiffieHellmanOpenSsl class with a default curve of NIST P-521/secp521r1. |
ECDiffie |
Initializes a new instance of the ECDiffieHellmanOpenSsl class and generates a new key on the specified curve. |
ECDiffie |
Initializes a new instance of the ECDiffieHellmanOpenSsl class defaulting to the NIST prime curve of the specified size. |
ECDiffie |
Initializes a new instance of the ECDiffieHellmanOpenSsl class from an existing OpenSSL key represented as an |
ECDiffie |
Initializes a new instance of the ECDiffieHellmanOpenSsl class from an existing OpenSSL key represented as an |
Key |
Represents the size, in bits, of the key modulus used by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm) |
Legal |
Specifies the key sizes that are supported by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm) |
Key |
Gets the name of the key exchange algorithm. (Inherited from ECDiffieHellman) |
Key |
Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm) |
Legal |
Gets the key sizes that are supported by the asymmetric algorithm. (Inherited from AsymmetricAlgorithm) |
Public |
Gets the public key that can be used by another ECDiffieHellman object to generate a shared secret agreement. |
Signature |
Gets the name of the signature algorithm. (Inherited from ECDiffieHellman) |
Clear() |
Releases all resources used by the AsymmetricAlgorithm class. (Inherited from AsymmetricAlgorithm) |
Derive |
Performs key derivation using a specified hash algorithm with optional prepended or appended data. |
Derive |
When implemented in a derived class, performs key derivation using a specified hash algorithm with optional prepended or appended data. (Inherited from ECDiffieHellman) |
Derive |
Performs key derivation using a specified hash algorithm. (Inherited from ECDiffieHellman) |
Derive |
Performs key derivation using a specified HMAC (Hash-based Message Authentication Code) algorithm with optional prepended or appended data. |
Derive |
When implemented in a derived class, performs key derivation using a specified HMAC (Hash-based Message Authentication Code) algorithm with optional prepended or appended data. (Inherited from ECDiffieHellman) |
Derive |
Performs key derivation using a specified HMAC (Hash-based Message Authentication Code) algorithm. (Inherited from ECDiffieHellman) |
Derive |
Performs a key derivation on the shared secret. |
Derive |
When implemented in a derived class, performs a key derivation on the shared secret. (Inherited from ECDiffieHellman) |
Derive |
Performs key derivation using the TLS (Transport Layer Security) 1.1 PRF (Pseudo-Random Function). |
Derive |
When implemented in a derived class, performs key derivation using the TLS (Transport Layer Security) 1.1 PRF (Pseudo-Random Function). (Inherited from ECDiffieHellman) |
Derive |
Derive raw key material. (Inherited from ECDiffieHellman) |
Dispose() |
Releases all resources used by the current instance of the AsymmetricAlgorithm class. (Inherited from AsymmetricAlgorithm) |
Dispose(Boolean) |
Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources. (Inherited from AsymmetricAlgorithm) |
Duplicate |
Gets a SafeEvpPKeyHandle representation of the cryptographic key. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Export |
Exports the current key in the ECPrivateKey format. (Inherited from ECDiffieHellman) |
Export |
Exports the current key in the ECPrivateKey format, PEM encoded. (Inherited from ECAlgorithm) |
Export |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password. (Inherited from AsymmetricAlgorithm) |
Export |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password. (Inherited from AsymmetricAlgorithm) |
Export |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password, PEM encoded. (Inherited from AsymmetricAlgorithm) |
Export |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password, PEM encoded. (Inherited from AsymmetricAlgorithm) |
Export |
Exports either the public or the public and private key information using the explicit curve form from the current key to an ECParameters structure so that it can be passed to the ImportParameters(ECParameters) method. |
Export |
When overridden in a derived class, exports either the public or the public and private key information using the explicit curve form from a working ECDiffieHellman key to an ECParameters structure so that it can be passed to the ImportParameters(ECParameters) method. (Inherited from ECDiffieHellman) |
Export |
Exports the key used by the ECCurve object into an ECParameters object. |
Export |
Exports the current key in the PKCS#8 PrivateKeyInfo format. (Inherited from AsymmetricAlgorithm) |
Export |
Exports the current key in the PKCS#8 PrivateKeyInfo format, PEM encoded. (Inherited from AsymmetricAlgorithm) |
Export |
Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format. (Inherited from AsymmetricAlgorithm) |
Export |
Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format, PEM encoded. (Inherited from AsymmetricAlgorithm) |
From |
This method throws in all cases. (Inherited from ECDiffieHellman) |
Generate |
Generates a new ephemeral public/private key pair for the specified curve. |
Generate |
When overridden in a derived class, generates a new ephemeral public/private key pair for the specified curve. (Inherited from ECDiffieHellman) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Import |
Imports the public/private keypair from an ECPrivateKey structure, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Import |
Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a byte-based password, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Import |
Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a char-based password, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Import |
Imports an encrypted RFC 7468 PEM-encoded private key, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Import |
Imports an encrypted RFC 7468 PEM-encoded private key, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Import |
Imports an RFC 7468 PEM-encoded key, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Import |
Imports the specified parameters for an ECCurve object as a key into the current instance. |
Import |
Imports the public/private keypair from a PKCS#8 PrivateKeyInfo structure after decryption, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Import |
Imports the public key from an X.509 SubjectPublicKeyInfo structure after decryption, replacing the keys for this object. (Inherited from ECDiffieHellman) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
To |
This method throws in all cases. (Inherited from ECDiffieHellman) |
Try |
Attempts to export the current key in the |
Try |
Attempts to export the current key in the PEM-encoded ECPrivateKey format into a provided buffer. (Inherited from ECAlgorithm) |
Try |
Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a byte-based password. (Inherited from ECDiffieHellman) |
Try |
Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password. (Inherited from ECDiffieHellman) |
Try |
Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password, PEM encoded. (Inherited from AsymmetricAlgorithm) |
Try |
Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password, PEM encoded. (Inherited from AsymmetricAlgorithm) |
Try |
Attempts to export the current key in the PKCS#8 PrivateKeyInfo format into a provided buffer. (Inherited from ECDiffieHellman) |
Try |
Attempts to export the current key in the PEM-encoded PKCS#8 PrivateKeyInfo format into a provided buffer. (Inherited from AsymmetricAlgorithm) |
Try |
Attempts to export the current key in the X.509 SubjectPublicKeyInfo format into a provided buffer. (Inherited from ECDiffieHellman) |
Try |
Attempts to export the current key in the PEM-encoded X.509 SubjectPublicKeyInfo format into a provided buffer. (Inherited from AsymmetricAlgorithm) |
Product | Versions |
---|---|
.NET | 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: