MLKem.GenerateKey(MLKemAlgorithm) メソッド

定義

新しい ML-KEM キーを生成します。

public:
 static System::Security::Cryptography::MLKem ^ GenerateKey(System::Security::Cryptography::MLKemAlgorithm ^ algorithm);
public static System.Security.Cryptography.MLKem GenerateKey(System.Security.Cryptography.MLKemAlgorithm algorithm);
static member GenerateKey : System.Security.Cryptography.MLKemAlgorithm -> System.Security.Cryptography.MLKem
Public Shared Function GenerateKey (algorithm As MLKemAlgorithm) As MLKem

パラメーター

algorithm
MLKemAlgorithm

生成する ML-KEM キーの種類を識別するアルゴリズム。

返品

生成されたキー。

例外

algorithmnullです。

ML-KEM キーの生成中にエラーが発生しました。

プラットフォームは ML-KEM をサポートしていません。 呼び出し元は、 IsSupported プロパティを使用して、プラットフォームが ML-KEM をサポートしているかどうかを判断できます。

適用対象