MLKem.GenerateKey(MLKemAlgorithm) Metodo

Definizione

Genera una nuova chiave 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

Parametri

algorithm
MLKemAlgorithm

Algoritmo che identifica il tipo di chiave ML-KEM da generare.

Valori restituiti

Chiave generata.

Eccezioni

algorithm è null.

Errore durante la generazione della chiave di ML-KEM.

La piattaforma non supporta ML-KEM. I chiamanti possono usare la IsSupported proprietà per determinare se la piattaforma supporta ML-KEM.

Si applica a