ECDiffieHellmanOpenSsl Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe ECDiffieHellmanOpenSsl.
Surcharges
| Nom | Description |
|---|---|
| ECDiffieHellmanOpenSsl() |
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe avec une courbe par défaut de NIST P-521/secp521r1. |
| ECDiffieHellmanOpenSsl(Int32) |
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe par défaut à la courbe de début 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 en tant que |
| ECDiffieHellmanOpenSsl(ECCurve) |
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe 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 en tant que |
ECDiffieHellmanOpenSsl()
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe avec une courbe par défaut de NIST P-521/secp521r1.
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 ECDiffieHellmanOpenSsl();
Public Sub New ()
- Attributs
Remarques
Ce constructeur ne génère pas immédiatement une nouvelle clé publique/privée, il définit simplement la taille qui sera utilisée pour générer une clé lorsqu’une clé est nécessaire. Si la clé est chargée par le biais de la ImportParameters méthode ou d’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
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe par défaut à la courbe de début NIST de la taille spécifiée.
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);
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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
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 keySize valeur 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 clé publique/privée, il définit simplement la taille qui sera utilisée pour générer une clé lorsqu’une clé est nécessaire. Si la clé est chargée par le biais de la ImportParameters méthode ou d’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
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe à partir d’une clé OpenSSL existante représentée en tant que EC_KEY*.
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);
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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
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 valide EC_KEY*.
Remarques
Importante
OpenSSL prend en charge plusieurs versions de bibliothèque chargées dans le même processus. Avant d’appeler ce constructeur, vérifiez que votre valeur de 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
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe et génère une nouvelle clé sur la courbe spécifiée.
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);
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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (curve As ECCurve)
Paramètres
- curve
- ECCurve
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
- Source:
- ECDiffieHellmanOpenSsl.cs
- Source:
- ECDiffieHellmanOpenSsl.cs
Initialise une nouvelle instance de la ECDiffieHellmanOpenSsl classe à partir d’une clé OpenSSL existante représentée en tant que EVP_PKEY*.
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);
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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
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 en tant que 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 (EC).
Remarques
Importante
OpenSSL prend en charge plusieurs versions de bibliothèque chargées dans le même processus. Avant d’appeler ce constructeur, vérifiez que votre valeur de pointeur provient de la même version d’OpenSSL que cette classe utilise. Pour plus d’informations, consultez OpenSslVersion.