CngKey.Create Yöntem

Tanım

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

Aşırı Yüklemeler

Name Description
Create(CngAlgorithm)

Belirtilen algoritmayla 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
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs

Belirtilen algoritmayla kullanılabilecek bir CngKey nesne oluşturur.

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

Parametreler

algorithm
CngAlgorithm

Anahtarın birlikte kullanılacağı algoritma.

Döndürülenler

Kısa ömürlü bir anahtar.

Öznitelikler

Özel durumlar

algorithm, null'e eşittir.

Ş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
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);
[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

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'e eşittir.

Ş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ü olur. Bu aşırı yükleme, anahtar için varsayılan CngKeyCreationParameters ve diğer gelişmiş parametreleri belirten bir varsayılan CngProvider nesne de oluşturur.

Şunlara uygulanır

Create(CngAlgorithm, String, CngKeyCreationParameters)

Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
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);
[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

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ş parametreleri belirten, dahil olmak üzere CngProviderbir nesne.

Döndürülenler

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

Öznitelikler

Özel durumlar

algorithm, null'e eşittir.

Ş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ü olur.

Şunlara uygulanır