語言

CompositeMLDsa.ImportCompositeMLDsaPrivateKey 方法

定義

匯入複合 ML-DSA 私鑰。

多載

ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, Byte[])

來源:
CompositeMLDsa.cs
來源:
CompositeMLDsa.cs
來源:
CompositeMLDsa.cs

匯入複合 ML-DSA 私鑰。

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

參數

algorithm
CompositeMLDsaAlgorithm

這個密鑰的特定複合 ML-DSA 演算法。

source
Byte[]

公鑰的位元組。

傳回

匯入的金鑰。

例外狀況

algorithm 或 source 為 null。

適用於

ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, ReadOnlySpan<Byte>)

來源:
CompositeMLDsa.cs
來源:
CompositeMLDsa.cs
來源:
CompositeMLDsa.cs

匯入複合 ML-DSA 私鑰。

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

參數

algorithm
CompositeMLDsaAlgorithm

這個密鑰的特定複合 ML-DSA 演算法。

source
ReadOnlySpan<Byte>

公鑰的位元組。

傳回

匯入的金鑰。

例外狀況

source 長度對指定演算法來說是錯誤的大小。

-或-

匯入金鑰時發生錯誤。

平台不支援指定的複合 ML-DSA 演算法。 呼叫者可以用 IsAlgorithmSupported(CompositeMLDsaAlgorithm) 來判斷該演算法是否被支援。

適用於