MLKem.GenerateKey(MLKemAlgorithm) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.