Edit

Share via


MLDsaCng(CngKey) Constructor

Definition

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

public:
 MLDsaCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public MLDsaCng(System.Security.Cryptography.CngKey key);
public MLDsaCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.MLDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.MLDsaCng
new System.Security.Cryptography.MLDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.MLDsaCng
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 Module-Lattice-Based Digital Signature Algorithm (ML-DSA) group.

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

Applies to