MLDsa.GenerateKey(MLDsaAlgorithm) Méthode

Définition

Génère une nouvelle clé ML-DSA.

public:
 static System::Security::Cryptography::MLDsa ^ GenerateKey(System::Security::Cryptography::MLDsaAlgorithm ^ algorithm);
public static System.Security.Cryptography.MLDsa GenerateKey(System.Security.Cryptography.MLDsaAlgorithm algorithm);
static member GenerateKey : System.Security.Cryptography.MLDsaAlgorithm -> System.Security.Cryptography.MLDsa
Public Shared Function GenerateKey (algorithm As MLDsaAlgorithm) As MLDsa

Paramètres

algorithm
MLDsaAlgorithm

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

Retours

Clé générée.

Exceptions

algorithm est null

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

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

S’applique à