語言

MLKem.ImportPrivateSeed 方法

定義

從其私有種子值匯入 ML-KEM 金鑰。

多載

名稱 Description
ImportPrivateSeed(MLKemAlgorithm, Byte[])

從其私有種子值匯入 ML-KEM 金鑰。

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

從其私有種子值匯入 ML-KEM 金鑰。

ImportPrivateSeed(MLKemAlgorithm, Byte[])

來源:
MLKem.cs
來源:
MLKem.cs
來源:
MLKem.cs

從其私有種子值匯入 ML-KEM 金鑰。

public:
 static System::Security::Cryptography::MLKem ^ ImportPrivateSeed(System::Security::Cryptography::MLKemAlgorithm ^ algorithm, cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.MLKem ImportPrivateSeed(System.Security.Cryptography.MLKemAlgorithm algorithm, byte[] source);
static member ImportPrivateSeed : System.Security.Cryptography.MLKemAlgorithm * byte[] -> System.Security.Cryptography.MLKem
Public Shared Function ImportPrivateSeed (algorithm As MLKemAlgorithm, source As Byte()) As MLKem

參數

algorithm
MLKemAlgorithm

這個密鑰的具體 ML-KEM 演算法。

source
Byte[]

私人種子。

傳回

匯入的金鑰。

例外狀況

source 其長度不是 PrivateSeedSizeInBytes 從 的 algorithm。

algorithm 是 null。

-或-

source 是 null。

匯入金鑰時發生錯誤。

該平台不支援 ML-KEM。 呼叫者可利用此 IsSupported 特性判斷平台是否支援 ML-KEM。

適用於

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

來源:
MLKem.cs
來源:
MLKem.cs
來源:
MLKem.cs

從其私有種子值匯入 ML-KEM 金鑰。

public:
 static System::Security::Cryptography::MLKem ^ ImportPrivateSeed(System::Security::Cryptography::MLKemAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.MLKem ImportPrivateSeed(System.Security.Cryptography.MLKemAlgorithm algorithm, ReadOnlySpan<byte> source);
static member ImportPrivateSeed : System.Security.Cryptography.MLKemAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
Public Shared Function ImportPrivateSeed (algorithm As MLKemAlgorithm, source As ReadOnlySpan(Of Byte)) As MLKem

參數

algorithm
MLKemAlgorithm

這個密鑰的具體 ML-KEM 演算法。

source
ReadOnlySpan<Byte>

私人種子。

傳回

匯入的金鑰。

例外狀況

source 其長度不是 PrivateSeedSizeInBytes 從 的 algorithm。

algorithm 是 null。

匯入金鑰時發生錯誤。

該平台不支援 ML-KEM。 呼叫者可利用此 IsSupported 特性判斷平台是否支援 ML-KEM。

適用於