Share via


CngKey.Create Yöntem

Tanım

Yeni bir CngKey anahtarı temsil eden bir nesne oluşturur.

Aşırı Yüklemeler

Create(CngAlgorithm)

Belirtilen algoritma ile kullanılabilecek bir CngKey nesne oluşturur.

Create(CngAlgorithm, String)

Belirtilen algoritmayı sağlayan adlandırılmış CngKey bir nesne oluşturur.

Create(CngAlgorithm, String, CngKeyCreationParameters)

Sağlanan anahtar oluşturma parametrelerini kullanarak belirtilen algoritmayı sağlayan adlandırılmış CngKey bir nesne oluşturur.

Create(CngAlgorithm)

Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs

Belirtilen algoritma ile kullanılabilecek bir CngKey nesne oluşturur.

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

Parametreler

algorithm
CngAlgorithm

Anahtarın birlikte kullanılacağı algoritma.

Döndürülenler

Kısa ömürlü bir anahtar.

Öznitelikler

Özel durumlar

algorithm, null değeridir.

Şifreleme Yeni Nesil (CNG) bu sistemde desteklenmiyor.

Diğer tüm hatalar.

Açıklamalar

Bu aşırı yükleme adı olmayan bir anahtar oluşturur ve bu da anahtarın kısa ömürlü olduğu anlamına gelir (başka bir deyişle kalıcı olmaz). Ayrıca anahtar için varsayılan CngKeyCreationParameters ve diğer gelişmiş parametreleri belirten bir varsayılan CngProvider nesne oluşturur.

Şunlara uygulanır

Create(CngAlgorithm, String)

Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs

Belirtilen algoritmayı sağlayan adlandırılmış CngKey bir nesne oluşturur.

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

Parametreler

algorithm
CngAlgorithm

Anahtarın birlikte kullanılacağı algoritma.

keyName
String

Anahtar adı. Bir ad sağlanmazsa anahtar kalıcı olmaz.

Döndürülenler

Belirtilen algoritmayı sağlayan kalıcı veya kısa ömürlü anahtar.

Öznitelikler

Özel durumlar

algorithm, null değeridir.

Şifreleme Yeni Nesil (CNG) bu sistemde desteklenmiyor.

Diğer tüm hatalar.

Açıklamalar

Sağlanırsa keyName , bu aşırı yükleme kalıcı bir anahtar oluşturur. Sağlanmazsa keyName anahtar kısa ömürlü olacaktır. Bu aşırı yükleme ayrıca anahtar için varsayılan CngKeyCreationParameters ve diğer gelişmiş parametreleri belirten bir varsayılan CngProvider nesne oluşturur.

Şunlara uygulanır

Create(CngAlgorithm, String, CngKeyCreationParameters)

Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs

Sağlanan anahtar oluşturma parametrelerini kullanarak belirtilen algoritmayı sağlayan adlandırılmış CngKey bir nesne oluşturur.

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

Parametreler

algorithm
CngAlgorithm

Anahtarın birlikte kullanılacağı algoritma.

keyName
String

Anahtar adı. Bir ad sağlanmazsa anahtar kalıcı olmaz.

creationParameters
CngKeyCreationParameters

yöntemi için gelişmiş parametreler belirten bir nesne, dahil olmak üzere CngProvider.

Döndürülenler

Belirtilen algoritmayı sağlayan kalıcı veya kısa ömürlü anahtar.

Öznitelikler

Özel durumlar

algorithm, null değeridir.

Şifreleme Yeni Nesil (CNG) bu sistemde desteklenmiyor.

Diğer tüm hatalar.

Açıklamalar

Sağlanırsa keyName , bu aşırı yükleme kalıcı bir anahtar oluşturur. Sağlanmazsa keyName anahtar kısa ömürlü olacaktır.

Şunlara uygulanır