語言

MLDsa.ImportMLDsaPrivateKey 方法

定義

匯入 FIPS 204 私鑰格式的 ML-DSA 私鑰。

多載

名稱 Description
ImportMLDsaPrivateKey(MLDsaAlgorithm, ReadOnlySpan<Byte>)

匯入 FIPS 204 私鑰格式的 ML-DSA 私鑰。

ImportMLDsaPrivateKey(MLDsaAlgorithm, Byte[])

匯入 FIPS 204 私鑰格式的 ML-DSA 私鑰。

ImportMLDsaPrivateKey(MLDsaAlgorithm, ReadOnlySpan<Byte>)

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

匯入 FIPS 204 私鑰格式的 ML-DSA 私鑰。

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

參數

algorithm
MLDsaAlgorithm

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

source
ReadOnlySpan<Byte>

FIPS 204 私鑰的位元組。

傳回

匯入的金鑰。

例外狀況

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

-或-

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

-或-

匯入金鑰時發生錯誤。

適用於

ImportMLDsaPrivateKey(MLDsaAlgorithm, Byte[])

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

匯入 FIPS 204 私鑰格式的 ML-DSA 私鑰。

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

參數

algorithm
MLDsaAlgorithm

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

source
Byte[]

FIPS 204 私鑰的位元組。

傳回

匯入的金鑰。

例外狀況

algorithm 或 source 為 null。

適用於