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 classe ECDsaOpenSsl à partir d’une clé OpenSSL existante représentée en tant que 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 classe ECDsaOpenSsl à partir d’une clé OpenSSL existante représentée en tant que 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 clé publique/privée. Ce constructeur définit la propriété KeySize sur 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 méthode ImportParameters 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 clé publique/privée. Ce constructeur définit la propriété KeySize sur la valeur fournie et quand 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 méthode ImportParameters 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 classe ECDsaOpenSsl à partir d’une clé OpenSSL existante représentée en tant que 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

OpenSSL EC_KEY* valeur à utiliser comme clé.

Attributs

Exceptions

handle est 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 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 à

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

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 est null.

Voir aussi

S’applique à

ECDsaOpenSsl(SafeEvpPKeyHandle)

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

Initialise une nouvelle instance de la classe ECDsaOpenSsl à partir d’une clé OpenSSL existante représentée en tant que 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

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

Attributs

Exceptions

pkeyHandle représente un handle non valide.

pkeyHandle est null.

pkeyHandle ne représente pas de clé de courbe elliptique (EC).

Remarques

Dans .NET 9 et versions ultérieures, les modifications externes de pkeyHandle affectent également le handle stocké dans l’instance créée par ce constructeur.

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 à