MLKem.GenerateKey(MLKemAlgorithm) Метод

Определение

Создает новый ключ 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

Параметры

algorithm
MLKemAlgorithm

Алгоритм, определяющий тип ML-KEM ключа для создания.

Возвращаемое значение

Созданный ключ.

Исключения

algorithm равно null.

Произошла ошибка при создании ключа ML-KEM.

Платформа не поддерживает ML-KEM. Вызывающие IsSupported могут использовать свойство, чтобы определить, поддерживает ли платформа ML-KEM.

Применяется к