MLDsa.GenerateKey(MLDsaAlgorithm) Metodo

Definizione

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

Parametri

algorithm
MLDsaAlgorithm

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

Valori restituiti

Chiave generata.

Eccezioni

algorithm è null

Errore durante la generazione della chiave di ML-DSA.

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

Si applica a