ECDiffieHellmanCng Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av ECDiffieHellmanCng klassen.
Överlagringar
| Name | Description |
|---|---|
| ECDiffieHellmanCng() |
Initierar en ny instans av ECDiffieHellmanCng klassen med ett slumpmässigt nyckelpar. |
| ECDiffieHellmanCng(Int32) |
Initierar en ny instans av ECDiffieHellmanCng klassen med ett slumpmässigt nyckelpar med den angivna nyckelstorleken. |
| ECDiffieHellmanCng(CngKey) |
Initierar en ny instans av ECDiffieHellmanCng klassen med hjälp av det angivna CngKey objektet. |
| ECDiffieHellmanCng(ECCurve) |
Skapar en ny instans av ECDiffieHellmanCng klassen vars offentliga/privata nyckelpar genereras över den angivna kurvan. |
ECDiffieHellmanCng()
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
Initierar en ny instans av ECDiffieHellmanCng klassen med ett slumpmässigt nyckelpar.
public:
ECDiffieHellmanCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng();
public ECDiffieHellmanCng();
Public Sub New ()
- Attribut
Kommentarer
Det slumpmässiga nyckelparet har en offentlig standardnyckellängd på 521 bitar.
Gäller för
ECDiffieHellmanCng(Int32)
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
Initierar en ny instans av ECDiffieHellmanCng klassen med ett slumpmässigt nyckelpar med den angivna nyckelstorleken.
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)
Parametrar
- keySize
- Int32
Storleken på nyckeln. Giltiga nyckelstorlekar är 256, 384 och 521 bitar.
- Attribut
Undantag
keySize anger en ogiltig längd.
CNG-klasser (Cryptography Next Generation) stöds inte i det här systemet.
Kommentarer
Det slumpmässiga nyckelparet har den offentliga nyckellängden definierad av parametern keySize .
Gäller för
ECDiffieHellmanCng(CngKey)
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
Initierar en ny instans av ECDiffieHellmanCng klassen med hjälp av det angivna CngKey objektet.
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)
Parametrar
- key
- CngKey
Nyckeln som ska användas som indata till de kryptografiska åtgärder som utförs av det aktuella objektet.
- Attribut
Undantag
key är null.
key anger inte någon elliptisk algoritmgrupp för kurva Diffie-Hellman (ECDH).
CNG-klasser (Cryptography Next Generation) stöds inte i det här systemet.
Gäller för
ECDiffieHellmanCng(ECCurve)
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
- Källa:
- Cng.NotSupported.cs
Skapar en ny instans av ECDiffieHellmanCng klassen vars offentliga/privata nyckelpar genereras över den angivna kurvan.
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)
Parametrar
- curve
- ECCurve
Kurvan som används för att generera det offentliga/privata nyckelparet.
- Attribut
Undantag
curve verifierar inte.
Kommentarer
curve måste verifiera (dvs. det måste returnera true) när det skickas till metoden och måste vara antingen en namngiven ECCurve.Validate eller explicit primtal.