Edit

Share via


SlhDsaCng(CngKey) Constructor

Definition

Initializes a new instance of the SlhDsaCng class by using the specified CngKey.

public:
 SlhDsaCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public SlhDsaCng(System.Security.Cryptography.CngKey key);
public SlhDsaCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.SlhDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.SlhDsaCng
new System.Security.Cryptography.SlhDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.SlhDsaCng
Public Sub New (key As CngKey)

Parameters

key
CngKey

The key that will be used as input to the cryptographic operations performed by the current object.

Attributes

Exceptions

key is null.

key does not specify a Stateless Hash-Based Digital Signature Algorithm (SLH-DSA) group.

Cryptography Next Generation (CNG) classes are not supported on this system.

Applies to