SlhDsa.GenerateKey(SlhDsaAlgorithm) 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 SLH-DSA key for the specified algorithm.
public:
static System::Security::Cryptography::SlhDsa ^ GenerateKey(System::Security::Cryptography::SlhDsaAlgorithm ^ algorithm);
public static System.Security.Cryptography.SlhDsa GenerateKey(System.Security.Cryptography.SlhDsaAlgorithm algorithm);
static member GenerateKey : System.Security.Cryptography.SlhDsaAlgorithm -> System.Security.Cryptography.SlhDsa
Public Shared Function GenerateKey (algorithm As SlhDsaAlgorithm) As SlhDsa
Parameters
- algorithm
- SlhDsaAlgorithm
An algorithm identifying what kind of SLH-DSA key to generate.
Returns
The generated object.
Exceptions
algorithm is null.
An error occurred generating the SLH-DSA key.
The platform does not support SLH-DSA. Callers can use the IsSupported property to determine if the platform supports SLH-DSA.