CngKey.Create Methode

Definitie

Hiermee maakt u een CngKey object dat een nieuwe sleutel vertegenwoordigt.

Overloads

Name Description
Create(CngAlgorithm)

Hiermee maakt u een CngKey object dat kan worden gebruikt met het opgegeven algoritme.

Create(CngAlgorithm, String)

Hiermee maakt u een benoemd CngKey object dat het opgegeven algoritme levert.

Create(CngAlgorithm, String, CngKeyCreationParameters)

Hiermee maakt u een benoemd CngKey object dat het opgegeven algoritme levert, met behulp van de opgegeven parameters voor het maken van sleutels.

Create(CngAlgorithm)

Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs

Hiermee maakt u een CngKey object dat kan worden gebruikt met het opgegeven algoritme.

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

Parameters

algorithm
CngAlgorithm

Het algoritme waarmee de sleutel wordt gebruikt.

Retouren

Een kortstondige sleutel.

Kenmerken

Uitzonderingen

algorithm is null.

Cryptografie Next Generation (CNG) wordt niet ondersteund op dit systeem.

Alle andere fouten.

Opmerkingen

Deze overbelasting maakt een sleutel zonder naam, wat betekent dat de sleutel kortstondig is (dat wil zeggen dat deze niet behouden blijft). Er wordt ook een standaardobject CngKeyCreationParameters gemaakt waarmee een standaard CngProvider en andere geavanceerde parameters voor de sleutel worden opgegeven.

Van toepassing op

Create(CngAlgorithm, String)

Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs

Hiermee maakt u een benoemd CngKey object dat het opgegeven algoritme levert.

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

Parameters

algorithm
CngAlgorithm

Het algoritme waarmee de sleutel wordt gebruikt.

keyName
String

De sleutelnaam. Als er geen naam is opgegeven, wordt de sleutel niet behouden.

Retouren

Een persistente of tijdelijke sleutel die het opgegeven algoritme biedt.

Kenmerken

Uitzonderingen

algorithm is null.

Cryptografie Next Generation (CNG) wordt niet ondersteund op dit systeem.

Alle andere fouten.

Opmerkingen

Als keyName deze overbelasting wordt opgegeven, wordt er een persistente sleutel gemaakt. Als keyName deze niet is opgegeven, is de sleutel kortstondig. Deze overbelasting maakt ook een standaardobject CngKeyCreationParameters dat een standaard CngProvider en andere geavanceerde parameters voor de sleutel opgeeft.

Van toepassing op

Create(CngAlgorithm, String, CngKeyCreationParameters)

Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs
Bron:
Cng.NotSupported.cs

Hiermee maakt u een benoemd CngKey object dat het opgegeven algoritme levert, met behulp van de opgegeven parameters voor het maken van sleutels.

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

Parameters

algorithm
CngAlgorithm

Het algoritme waarmee de sleutel wordt gebruikt.

keyName
String

De sleutelnaam. Als er geen naam is opgegeven, wordt de sleutel niet behouden.

creationParameters
CngKeyCreationParameters

Een object dat geavanceerde parameters voor de methode opgeeft, inclusief de CngProvider.

Retouren

Een persistente of tijdelijke sleutel die het opgegeven algoritme biedt.

Kenmerken

Uitzonderingen

algorithm is null.

Cryptografie Next Generation (CNG) wordt niet ondersteund op dit systeem.

Alle andere fouten.

Opmerkingen

Als keyName deze overbelasting wordt opgegeven, wordt er een persistente sleutel gemaakt. Als keyName deze niet is opgegeven, is de sleutel kortstondig.

Van toepassing op