MLDsa.GenerateKey(MLDsaAlgorithm) Metoda

Definicja

Generuje nowy klucz ML-DSA.

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

Parametry

algorithm
MLDsaAlgorithm

Algorytm identyfikujący, jakiego rodzaju klucz ML-DSA wygenerować.

Zwraca

Wygenerowany klucz.

Wyjątki

algorithm jest null

Wystąpił błąd podczas generowania klucza ML-DSA.

Platforma nie obsługuje uczenia maszynowego DSA. Obiekt wywołujący może użyć IsSupported właściwości , aby określić, czy platforma obsługuje usługę ML-DSA.

Dotyczy