語言

MLDsa.ImportMLDsaPrivateSeed 方法

定義

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

多載

名稱 Description
ImportMLDsaPrivateSeed(MLDsaAlgorithm, Byte[])

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

ImportMLDsaPrivateSeed(MLDsaAlgorithm, ReadOnlySpan<Byte>)

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

ImportMLDsaPrivateSeed(MLDsaAlgorithm, Byte[])

來源:
MLDsa.cs
來源:
MLDsa.cs
來源:
MLDsa.cs

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

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

參數

algorithm
MLDsaAlgorithm

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

source
Byte[]

位元組是密鑰種子。

傳回

匯入的金鑰。

例外狀況

algorithm 或 source 為 null。

適用於

ImportMLDsaPrivateSeed(MLDsaAlgorithm, ReadOnlySpan<Byte>)

來源:
MLDsa.cs
來源:
MLDsa.cs
來源:
MLDsa.cs

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

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

參數

algorithm
MLDsaAlgorithm

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

source
ReadOnlySpan<Byte>

位元組是密鑰種子。

傳回

匯入的金鑰。

例外狀況

algorithm 不是有效的 ML-DSA 演算法識別碼。

-或-

source 並非指定演算法的正確大小。

-或-

匯入金鑰時發生錯誤。

適用於