MLDsa.ImportMLDsaPrivateKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
匯入 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 私鑰的位元組。
傳回
匯入的金鑰。
例外狀況
適用於
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。