CompositeMLDsa.GenerateKey(CompositeMLDsaAlgorithm) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.