ECDiffieHellmanCng 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 ECDiffieHellmanCng.
Surcharges
| Nom | Description |
|---|---|
| ECDiffieHellmanCng() |
Initialise une nouvelle instance de la ECDiffieHellmanCng classe avec une paire de clés aléatoire. |
| ECDiffieHellmanCng(Int32) |
Initialise une nouvelle instance de la ECDiffieHellmanCng classe avec une paire de clés aléatoire, à l’aide de la taille de clé spécifiée. |
| ECDiffieHellmanCng(CngKey) |
Initialise une nouvelle instance de la ECDiffieHellmanCng classe à l’aide de l’objet spécifié CngKey . |
| ECDiffieHellmanCng(ECCurve) |
Crée une instance de la classe dont la ECDiffieHellmanCng paire de clés publique/privée est générée sur la courbe spécifiée. |
ECDiffieHellmanCng()
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Initialise une nouvelle instance de la ECDiffieHellmanCng classe avec une paire de clés aléatoire.
public:
ECDiffieHellmanCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng();
public ECDiffieHellmanCng();
Public Sub New ()
- Attributs
Remarques
La paire de clés aléatoires a une longueur de clé publique par défaut de 521 bits.
S’applique à
ECDiffieHellmanCng(Int32)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Initialise une nouvelle instance de la ECDiffieHellmanCng classe avec une paire de clés aléatoire, à l’aide de la taille de clé spécifiée.
public:
ECDiffieHellmanCng(int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(int keySize);
public ECDiffieHellmanCng(int keySize);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
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.
Les classes CNG (Cryptography Next Generation) ne sont pas prises en charge sur ce système.
Remarques
La paire de clés aléatoires aura la longueur de clé publique définie par le keySize paramètre.
S’applique à
ECDiffieHellmanCng(CngKey)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Initialise une nouvelle instance de la ECDiffieHellmanCng classe à l’aide de l’objet spécifié CngKey .
public:
ECDiffieHellmanCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (key As CngKey)
Paramètres
- key
- CngKey
Clé qui sera utilisée comme entrée aux opérations de chiffrement effectuées par l’objet actuel.
- Attributs
Exceptions
key a la valeur null.
key ne spécifie pas de groupe d’algorithmes ECDH (Elliptic Curve Diffie-Hellman).
Les classes CNG (Cryptography Next Generation) ne sont pas prises en charge sur ce système.
S’applique à
ECDiffieHellmanCng(ECCurve)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
Crée une instance de la classe dont la ECDiffieHellmanCng paire de clés publique/privée est générée sur la courbe spécifiée.
public:
ECDiffieHellmanCng(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(System.Security.Cryptography.ECCurve curve);
public ECDiffieHellmanCng(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (curve As ECCurve)
Paramètres
- curve
- ECCurve
Courbe utilisée pour générer la paire de clés publique/privée.
- Attributs
Exceptions
curve ne valide pas.
Remarques
curve doit valider (autrement dit, il doit retourner true) lorsqu’il est passé à la ECCurve.Validate méthode et doit être un premier nommé ou explicite.