ECDiffieHellmanOpenSsl Constructeurs

Définition

Surcharges

ECDiffieHellmanOpenSsl()

Initialise une nouvelle instance de la classe ECDiffieHellmanOpenSsl avec une courbe par défaut de NIST P-521/secp521r1.

ECDiffieHellmanOpenSsl(Int32)

Initialise une nouvelle instance de la classe ECDiffieHellmanOpenSsl qui prend par défaut la courbe d’ordre premier NIST de la taille spécifiée.

ECDiffieHellmanOpenSsl(IntPtr)

Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe à partir d’une clé OpenSSL existante représentée sous la forme d’un EC_KEY*.

ECDiffieHellmanOpenSsl(ECCurve)

Initialise une nouvelle instance de la classe ECDiffieHellmanOpenSsl et génère une nouvelle clé sur la courbe spécifiée.

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe à partir d’une clé OpenSSL existante représentée sous la forme d’un EVP_PKEY*.

ECDiffieHellmanOpenSsl()

Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs

Initialise une nouvelle instance de la classe ECDiffieHellmanOpenSsl avec une courbe par défaut de NIST P-521/secp521r1.

public:
 ECDiffieHellmanOpenSsl();
public ECDiffieHellmanOpenSsl ();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl ();
Public Sub New ()
Attributs

Remarques

Ce constructeur ne génère pas immédiatement une nouvelle paire de clés publique/privée, il définit simplement la taille qui sera utilisée pour générer une clé quand elle est nécessaire. Si la clé est chargée via la ImportParameters méthode ou une autre méthode d’importation de clé, la taille de clé de ce constructeur n’a aucune signification.

Voir aussi

S’applique à

ECDiffieHellmanOpenSsl(Int32)

Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs

Initialise une nouvelle instance de la classe ECDiffieHellmanOpenSsl qui prend par défaut la courbe d’ordre premier NIST de la taille spécifiée.

public:
 ECDiffieHellmanOpenSsl(int keySize);
public ECDiffieHellmanOpenSsl (int keySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl (int keySize);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (keySize As Integer)

Paramètres

keySize
Int32

Taille de la clé à générer, quand une clé est nécessaire.

Attributs

Exceptions

La valeur keySize n’est pas prise en charge par cette implémentation.

Remarques

Seules trois tailles de clé sont prises en charge par ce constructeur : 256 (NIST P-256/secp256r1), 384 (NIST P-384/secp384r1) et 521 (NIST P-521/secp521r1). Pour générer des clés Pour toute autre courbe, utilisez le ECDiffieHellmanOpenSsl(ECCurve) constructeur ou la GenerateKey(ECCurve) méthode .

Ce constructeur ne génère pas immédiatement une nouvelle paire de clés publique/privée, il définit simplement la taille qui sera utilisée pour générer une clé quand elle est nécessaire. Si la clé est chargée via la ImportParameters méthode ou une autre méthode d’importation de clé, la taille de clé de ce constructeur n’a aucune signification.

Voir aussi

S’applique à

ECDiffieHellmanOpenSsl(IntPtr)

Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs

Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe à partir d’une clé OpenSSL existante représentée sous la forme d’un EC_KEY*.

public:
 ECDiffieHellmanOpenSsl(IntPtr handle);
public ECDiffieHellmanOpenSsl (IntPtr handle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl (IntPtr handle);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (handle As IntPtr)

Paramètres

handle
IntPtr

nativeint

Valeur OpenSSL EC_KEY* à utiliser comme clé.

Attributs

Exceptions

handle a la valeur Zero.

handle n’est pas un EC_KEY* valide.

Remarques

Important

OpenSSL prend en charge plusieurs versions de bibliothèque chargées dans le même processus. Avant d’appeler ce constructeur, vérifiez que la valeur de votre pointeur provient de la même version d’OpenSSL que cette classe utilise. Pour plus d'informations, consultez OpenSslVersion.

Voir aussi

S’applique à

ECDiffieHellmanOpenSsl(ECCurve)

Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs

Initialise une nouvelle instance de la classe ECDiffieHellmanOpenSsl et génère une nouvelle clé sur la courbe spécifiée.

public:
 ECDiffieHellmanOpenSsl(System::Security::Cryptography::ECCurve curve);
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (curve As ECCurve)

Paramètres

curve
ECCurve

La courbe utilisée pour générer une paire de clés publique/privée éphémère.

Attributs

Exceptions

curve ne valide pas.

Voir aussi

S’applique à

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs
Source:
ECDiffieHellmanOpenSsl.cs

Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe à partir d’une clé OpenSSL existante représentée sous la forme d’un EVP_PKEY*.

public:
 ECDiffieHellmanOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

Paramètres

pkeyHandle
SafeEvpPKeyHandle

Valeur OpenSSL EVP_PKEY* à utiliser comme clé, représentée sous la forme d’un SafeEvpPKeyHandle.

Attributs

Exceptions

pkeyHandle représente un handle non valide.

pkeyHandle a la valeur null.

pkeyHandle ne représente pas une clé de courbe elliptique.

Remarques

Important

OpenSSL prend en charge plusieurs versions de bibliothèque chargées dans le même processus. Avant d’appeler ce constructeur, vérifiez que la valeur de votre pointeur provient de la même version d’OpenSSL que cette classe utilise. Pour plus d'informations, consultez OpenSslVersion.

Voir aussi

S’applique à