CngKey.Create Metoda

Definicja

CngKey Tworzy obiekt reprezentujący nowy klucz.

Przeciążenia

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

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);
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);
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm) As CngKey

Parametry

algorithm
CngAlgorithm

Algorytm, z którego będzie używany klucz.

Zwraca

Efemeryczny klucz.

Atrybuty

Wyjątki

algorithm to null.

Kryptografia Następnej 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

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);
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")]
public static System.Security.Cryptography.CngKey Create (System.Security.Cryptography.CngAlgorithm algorithm, string? keyName);
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
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, z którego będzie używany klucz.

keyName
String

Nazwa klucza. Jeśli nie podano nazwy, klucz nie zostanie utrwalone.

Zwraca

Utrwalone lub efemeryczny klucz, który udostępnia określony algorytm.

Atrybuty

Wyjątki

algorithm to null.

Kryptografia Następnej generacji (CNG) nie jest obsługiwana w tym systemie.

Wszystkie inne błędy.

Uwagi

Jeśli keyName zostanie podane, to przeciążenie powoduje 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

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);
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.Runtime.Versioning.SupportedOSPlatform("windows")]
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);
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
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, z którego będzie używany klucz.

keyName
String

Nazwa klucza. Jeśli nie podano nazwy, 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

algorithm to null.

Kryptografia Następnej generacji (CNG) nie jest obsługiwana w tym systemie.

Wszystkie inne błędy.

Uwagi

Jeśli keyName zostanie podane, to przeciążenie powoduje utworzenie utrwalonego klucza. Jeśli keyName nie zostanie podany, klucz będzie efemeryczny.

Dotyczy