MLKem.GenerateKey(MLKemAlgorithm) Méthode

Définition

Génère une nouvelle clé 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

Paramètres

algorithm
MLKemAlgorithm

Algorithme identifiant le type de clé ML-KEM à générer.

Retours

Clé générée.

Exceptions

algorithm a la valeur null.

Une erreur s’est produite lors de la génération de la clé ML-KEM.

La plateforme ne prend pas en charge ML-KEM. Les appelants peuvent utiliser la IsSupported propriété pour déterminer si la plateforme prend en charge ML-KEM.

S’applique à