SlhDsa.GenerateKey(SlhDsaAlgorithm) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為指定演算法產生新的 SLH-DSA 金鑰。
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
參數
- algorithm
- SlhDsaAlgorithm
一個用來識別要產生哪種 SLH-DSA 金鑰的演算法。
傳回
生成的物件。
例外狀況
algorithm 是 null。
產生 SLH-DSA 金鑰時發生錯誤。
該平台不支援 SLH-DSA。 呼叫者可利用此 IsSupported 特性判斷平台是否支援 SLH-DSA。