MLKem.GenerateKey(MLKemAlgorithm) Metoda

Definicja

Generuje nowy klucz ML-KEM.

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

Parametry

algorithm
MLKemAlgorithm

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

Zwraca

Wygenerowany klucz.

Wyjątki

Parametr algorithm ma wartość null.

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

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

Dotyczy