Språk

CompositeMLDsa.ImportCompositeMLDsaPrivateKey Metod

Definition

Importerar en sammansatt ML-DSA privat nyckel.

Överlagringar

Name Description
ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, Byte[])

Importerar en sammansatt ML-DSA privat nyckel.

ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, ReadOnlySpan<Byte>)

Importerar en sammansatt ML-DSA privat nyckel.

ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, Byte[])

Källa:
CompositeMLDsa.cs
Källa:
CompositeMLDsa.cs
Källa:
CompositeMLDsa.cs

Importerar en sammansatt ML-DSA privat nyckel.

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

Parametrar

algorithm
CompositeMLDsaAlgorithm

Den specifika sammansatta ML-DSA-algoritmen för den här nyckeln.

source
Byte[]

Byte för den offentliga nyckeln.

Returer

Den importerade nyckeln.

Undantag

algorithm eller source är null.

Gäller för

ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, ReadOnlySpan<Byte>)

Källa:
CompositeMLDsa.cs
Källa:
CompositeMLDsa.cs
Källa:
CompositeMLDsa.cs

Importerar en sammansatt ML-DSA privat nyckel.

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

Parametrar

algorithm
CompositeMLDsaAlgorithm

Den specifika sammansatta ML-DSA-algoritmen för den här nyckeln.

source
ReadOnlySpan<Byte>

Byte för den offentliga nyckeln.

Returer

Den importerade nyckeln.

Undantag

source längden är fel storlek för den angivna algoritmen.

-eller-

Ett fel uppstod när nyckeln skulle importeras.

Plattformen stöder inte den angivna sammansatta ML-DSA-algoritmen. Anropare kan använda IsAlgorithmSupported(CompositeMLDsaAlgorithm) för att avgöra om algoritmen stöds.

Gäller för