Edit

Share via


CompositeMLDsa.GenerateKey(CompositeMLDsaAlgorithm) Method

Definition

Generates a new Composite ML-DSA key.

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

Parameters

algorithm
CompositeMLDsaAlgorithm

An algorithm identifying what kind of Composite ML-DSA key to generate.

Returns

The generated key.

Exceptions

algorithm is null

An error occurred generating the Composite ML-DSA key.

The platform does not support the specified Composite ML-DSA algorithm. Callers can use IsAlgorithmSupported(CompositeMLDsaAlgorithm) to determine if the algorithm is supported.

Applies to