MLDsa.GenerateKey(MLDsaAlgorithm) Metoda

Definice

Vygeneruje nový klíč 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

Parametry

algorithm
MLDsaAlgorithm

Algoritmus identifikující, jaký druh ML-DSA klíče se má vygenerovat.

Návraty

Vygenerovaný klíč.

Výjimky

algorithm je null

Při generování klíče ML-DSA došlo k chybě.

Platforma nepodporuje ML-DSA. Volající můžou vlastnost použít IsSupported k určení, jestli platforma podporuje ML-DSA.

Platí pro