ECDsaCng 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 ECDsaCng klassen.
Överlagringar
| Name | Description |
|---|---|
| ECDsaCng() |
Initierar en ny instans av ECDsaCng klassen med ett slumpmässigt nyckelpar. |
| ECDsaCng(Int32) |
Initierar en ny instans av ECDsaCng klassen med en angiven målnyckelstorlek. |
| ECDsaCng(CngKey) |
Initierar en ny instans av ECDsaCng klassen med hjälp av det angivna CngKey objektet. |
| ECDsaCng(ECCurve) |
Initierar en ny instans av ECDsaCng klassen vars offentliga/privata nyckelpar genereras över den angivna kurvan. |
ECDsaCng()
- 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 ECDsaCng klassen med ett slumpmässigt nyckelpar.
public:
ECDsaCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng();
public ECDsaCng();
Public Sub New ()
- Attribut
Undantag
CNG-klasser (Cryptography Next Generation) stöds inte i det här systemet.
Kommentarer
Den här konstruktorn genererar inte en ny offentlig/privat keypair omedelbart. Den här konstruktorn anger KeySize egenskapen till 521 och när en nyckel behövs används den sparade storleken för att identifiera målkurvan. Om en nyckel läses in via ImportParameters metoden eller någon annan nyckelimportmetod har nyckelstorleken från konstruktorn ingen betydelse.
Se även
Gäller för
ECDsaCng(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 ECDsaCng klassen med en angiven målnyckelstorlek.
public:
ECDsaCng(int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(int keySize);
public ECDsaCng(int keySize);
[System.Security.SecurityCritical]
public ECDsaCng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
Public Sub New (keySize As Integer)
Parametrar
- keySize
- Int32
Storleken på nyckeln. Giltiga nyckelstorlekar är 256, 384 och 521 bitar.
- Attribut
Undantag
CNG-klasser (Cryptography Next Generation) stöds inte i det här systemet.
keySize anger en ogiltig längd.
Kommentarer
Den här konstruktorn genererar inte en ny offentlig/privat keypair omedelbart. Den här konstruktorn anger KeySize egenskapen till det angivna värdet och när en nyckel behövs används den sparade storleken för att identifiera målkurvan. Om en nyckel läses in via ImportParameters metoden eller någon annan nyckelimportmetod har nyckelstorleken från konstruktorn ingen betydelse.
Se även
Gäller för
ECDsaCng(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
public:
ECDsaCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(System.Security.Cryptography.CngKey key);
public ECDsaCng(System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDsaCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
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 anger inte någon ECDSA-grupp (Elliptic Curve Digital Signature Algorithm).
key är null.
CNG-klasser (Cryptography Next Generation) stöds inte i det här systemet.
Gäller för
ECDsaCng(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
Initierar en ny instans av ECDsaCng klassen vars offentliga/privata nyckelpar genereras över den angivna kurvan.
public:
ECDsaCng(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(System.Security.Cryptography.ECCurve curve);
public ECDsaCng(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
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.
curve är null.
om curve inte innehåller en Oid med ett FriendlyName.
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.