SlhDsa.GenerateKey(SlhDsaAlgorithm) Metod

Definition

Genererar en ny SLH-DSA nyckel för den angivna algoritmen.

public:
 static System::Security::Cryptography::SlhDsa ^ GenerateKey(System::Security::Cryptography::SlhDsaAlgorithm ^ algorithm);
public static System.Security.Cryptography.SlhDsa GenerateKey(System.Security.Cryptography.SlhDsaAlgorithm algorithm);
static member GenerateKey : System.Security.Cryptography.SlhDsaAlgorithm -> System.Security.Cryptography.SlhDsa
Public Shared Function GenerateKey (algorithm As SlhDsaAlgorithm) As SlhDsa

Parametrar

algorithm
SlhDsaAlgorithm

En algoritm som identifierar vilken typ av SLH-DSA nyckel som ska genereras.

Returer

Det genererade objektet.

Undantag

algorithm är null.

Ett fel uppstod när nyckeln SLH-DSA skulle genereras.

Plattformen stöder inte SLH-DSA. Anropare kan använda egenskapen IsSupported för att avgöra om plattformen stöder SLH-DSA.

Gäller för