ECDsaOpenSsl Constructeurs

Définition

Initialise une nouvelle instance de la classe ECDsaOpenSsl.

Surcharges

Nom Description
ECDsaOpenSsl()

Initialise une nouvelle instance de la classe ECDsaOpenSsl.

ECDsaOpenSsl(Int32)

Initialise une nouvelle instance de la ECDsaOpenSsl classe 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 en tant que EC_KEY*.

ECDsaOpenSsl(ECCurve)

Initialise une nouvelle instance de la ECDsaOpenSsl classe 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 en tant que EVP_PKEY*.

ECDsaOpenSsl()

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

Initialise une nouvelle instance de la classe 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 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 KeySize propriété 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 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
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

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

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

Paramètres

keySize
Int32
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é sur la KeySize 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 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
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

Initialise une nouvelle instance de la ECDsaOpenSsl classe à partir d’une clé OpenSSL existante représentée en tant que EC_KEY*.

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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (handle As IntPtr)

Paramètres

handle
IntPtr

nativeint

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 à

ECDsaOpenSsl(ECCurve)

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

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

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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (curve As ECCurve)

Paramètres

curve
ECCurve
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
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

Initialise une nouvelle instance de la ECDsaOpenSsl classe à partir d’une clé OpenSSL existante représentée en tant que EVP_PKEY*.

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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

Paramètres

pkeyHandle
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

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

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 à