MLKem.GenerateKey(MLKemAlgorithm) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Gera uma nova chave de 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
Parâmetros
- algorithm
- MLKemAlgorithm
Um algoritmo que identifica que tipo de chave ML-KEM gerar.
Retornos
A chave gerada.
Exceções
algorithm é null.
Ocorreu um erro ao gerar a chave ML-KEM.
A plataforma não dá suporte ao ML-KEM. Os chamadores podem usar a IsSupported propriedade para determinar se a plataforma dá suporte a ML-KEM.