Edit

Share via


MLKemCng(CngKey) Constructor

Definition

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

public:
 MLKemCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public MLKemCng(System.Security.Cryptography.CngKey key);
public MLKemCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.MLKemCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.MLKemCng
new System.Security.Cryptography.MLKemCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.MLKemCng
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 Key-Encapsulation Mechanism (ML-KEM) algorithm group.

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

Applies to