CngKey.Create Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy CngKey obiekt reprezentujący nowy klucz.
Przeciążenia
| Nazwa | Opis |
|---|---|
| Create(CngAlgorithm) |
CngKey Tworzy obiekt, który może być używany z określonym algorytmem. |
| Create(CngAlgorithm, String) |
Tworzy nazwany CngKey obiekt, który udostępnia określony algorytm. |
| Create(CngAlgorithm, String, CngKeyCreationParameters) |
Tworzy nazwany CngKey obiekt, który udostępnia określony algorytm przy użyciu podanych parametrów tworzenia klucza. |
Create(CngAlgorithm)
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
CngKey Tworzy obiekt, który może być używany z określonym algorytmem.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm) As CngKey
Parametry
- algorithm
- CngAlgorithm
Algorytm używany przez klucz.
Zwraca
Klucz efemeryczny.
- Atrybuty
Wyjątki
Parametr algorithm ma wartość null.
Kryptografia nowej generacji (CNG) nie jest obsługiwana w tym systemie.
Wszystkie inne błędy.
Uwagi
To przeciążenie tworzy klucz bez nazwy, co oznacza, że klucz jest efemeryczny (czyli nie zostanie utrwalone). Tworzy również obiekt domyślny CngKeyCreationParameters , który określa domyślne CngProvider i inne zaawansowane parametry klucza.
Dotyczy
Create(CngAlgorithm, String)
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
Tworzy nazwany CngKey obiekt, który udostępnia określony algorytm.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::String ^ keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm, keyName As String) As CngKey
Parametry
- algorithm
- CngAlgorithm
Algorytm używany przez klucz.
- keyName
- String
Nazwa klucza. Jeśli nazwa nie zostanie podana, klucz nie zostanie utrwalone.
Zwraca
Utrwalone lub efemeryczny klucz, który udostępnia określony algorytm.
- Atrybuty
Wyjątki
Parametr algorithm ma wartość null.
Kryptografia nowej generacji (CNG) nie jest obsługiwana w tym systemie.
Wszystkie inne błędy.
Uwagi
Jeśli keyName zostanie podane, to przeciążenie spowoduje utworzenie utrwalonego klucza. Jeśli keyName nie zostanie podany, klucz będzie efemeryczny. To przeciążenie tworzy również obiekt domyślny CngKeyCreationParameters , który określa domyślne CngProvider i inne zaawansowane parametry klucza.
Dotyczy
Create(CngAlgorithm, String, CngKeyCreationParameters)
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
Tworzy nazwany CngKey obiekt, który udostępnia określony algorytm przy użyciu podanych parametrów tworzenia klucza.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::String ^ keyName, System::Security::Cryptography::CngKeyCreationParameters ^ creationParameters);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName, System.Security.Cryptography.CngKeyCreationParameters? creationParameters);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName, System.Security.Cryptography.CngKeyCreationParameters? creationParameters);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName, System.Security.Cryptography.CngKeyCreationParameters creationParameters);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName, System.Security.Cryptography.CngKeyCreationParameters creationParameters);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm, keyName As String, creationParameters As CngKeyCreationParameters) As CngKey
Parametry
- algorithm
- CngAlgorithm
Algorytm używany przez klucz.
- keyName
- String
Nazwa klucza. Jeśli nazwa nie zostanie podana, klucz nie zostanie utrwalone.
- creationParameters
- CngKeyCreationParameters
Obiekt, który określa zaawansowane parametry metody, w tym CngProvider.
Zwraca
Utrwalone lub efemeryczny klucz, który udostępnia określony algorytm.
- Atrybuty
Wyjątki
Parametr algorithm ma wartość null.
Kryptografia nowej generacji (CNG) nie jest obsługiwana w tym systemie.
Wszystkie inne błędy.
Uwagi
Jeśli keyName zostanie podane, to przeciążenie spowoduje utworzenie utrwalonego klucza. Jeśli keyName nie zostanie podany, klucz będzie efemeryczny.