MLDsa.ImportMLDsaPrivateSeed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ImportMLDsaPrivateSeed(MLDsaAlgorithm, Byte[]) |
Imports an ML-DSA private key from its private seed value. |
| ImportMLDsaPrivateSeed(MLDsaAlgorithm, ReadOnlySpan<Byte>) |
Imports an ML-DSA private key from its private seed value. |
ImportMLDsaPrivateSeed(MLDsaAlgorithm, Byte[])
- Source:
- MLDsa.cs
Imports an ML-DSA private key from its private seed value.
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
Parameters
- algorithm
- MLDsaAlgorithm
The specific ML-DSA algorithm for this key.
- source
- Byte[]
The bytes the key seed.
Returns
The imported key.
Exceptions
algorithm or source is null.
Applies to
ImportMLDsaPrivateSeed(MLDsaAlgorithm, ReadOnlySpan<Byte>)
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
Imports an ML-DSA private key from its private seed value.
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
Parameters
- algorithm
- MLDsaAlgorithm
The specific ML-DSA algorithm for this key.
- source
- ReadOnlySpan<Byte>
The bytes the key seed.
Returns
The imported key.
Exceptions
algorithm is not a valid ML-DSA algorithm identifier.
-or-
source is not the correct size for the specified algorithm.
-or-
An error occurred while importing the key.