Edit

Share via


SlhDsa.GenerateKey(SlhDsaAlgorithm) Method

Definition

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.

Applies to