ECDsaOpenSsl Constructeurs

Définition

Surcharges

ECDsaOpenSsl()

Initialise une nouvelle instance de la classe ECDsaOpenSsl.

ECDsaOpenSsl(Int32)

Initialise une nouvelle instance de la classe ECDsaOpenSsl avec une taille de clé cible spécifiée.

ECDsaOpenSsl(IntPtr)

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

ECDsaOpenSsl(ECCurve)

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

ECDsaOpenSsl(SafeEvpPKeyHandle)

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

ECDsaOpenSsl()

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

Initialise une nouvelle instance de la classe ECDsaOpenSsl.

public:
 ECDsaOpenSsl();
public ECDsaOpenSsl ();
[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 ECDsaOpenSsl ();
Public Sub New ()
Attributs

Remarques

Ce constructeur ne génère pas immédiatement une nouvelle paire de clés publique/privée. Ce constructeur définit la propriété sur KeySize 521 et lorsqu’une clé est nécessaire, la taille enregistrée est utilisée pour identifier la courbe cible. Si une 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 à

ECDsaOpenSsl(Int32)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

Initialise une nouvelle instance de la classe ECDsaOpenSsl avec une taille de clé cible spécifiée.

public:
 ECDsaOpenSsl(int keySize);
public ECDsaOpenSsl (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 ECDsaOpenSsl (int keySize);
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (keySize As Integer)

Paramètres

keySize
Int32

Taille de la clé. Les tailles de clé valides sont 256, 384 et 521 bits.

Attributs

Exceptions

keySize spécifie une longueur non valide.

Remarques

Ce constructeur ne génère pas immédiatement une nouvelle paire de clés publique/privée. Ce constructeur définit la propriété sur la KeySize valeur fournie et lorsqu’une clé est nécessaire, la taille enregistrée est utilisée pour identifier la courbe cible. Si une 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 à

ECDsaOpenSsl(IntPtr)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

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

public:
 ECDsaOpenSsl(IntPtr handle);
public ECDsaOpenSsl (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 ECDsaOpenSsl (IntPtr handle);
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
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 celle qu’utilise cette classe, consultez OpenSslVersion pour plus d’informations.

Voir aussi

S’applique à

ECDsaOpenSsl(ECCurve)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

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

public:
 ECDsaOpenSsl(System::Security::Cryptography::ECCurve curve);
public ECDsaOpenSsl (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 ECDsaOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
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.

curve a la valeur null.

Voir aussi

S’applique à

ECDsaOpenSsl(SafeEvpPKeyHandle)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

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

public:
 ECDsaOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
public ECDsaOpenSsl (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 ECDsaOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
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 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 à