Språk

MLKem.ImportPrivateSeed Metod

Definition

Importerar en ML-KEM nyckel från dess privata startvärde.

Överlagringar

Name Description
ImportPrivateSeed(MLKemAlgorithm, Byte[])

Importerar en ML-KEM nyckel från dess privata startvärde.

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

Importerar en ML-KEM nyckel från dess privata startvärde.

ImportPrivateSeed(MLKemAlgorithm, Byte[])

Källa:
MLKem.cs
Källa:
MLKem.cs
Källa:
MLKem.cs

Importerar en ML-KEM nyckel från dess privata startvärde.

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

Parametrar

algorithm
MLKemAlgorithm

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

source
Byte[]

Det privata fröet.

Returer

Den importerade nyckeln.

Undantag

source har en längd som inte PrivateSeedSizeInBytes är från algorithm.

algorithm är null.

-eller-

source är null.

Ett fel uppstod när nyckeln skulle importeras.

Plattformen stöder inte ML-KEM. Anropare kan använda egenskapen IsSupported för att avgöra om plattformen stöder ML-KEM.

Gäller för

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

Källa:
MLKem.cs
Källa:
MLKem.cs
Källa:
MLKem.cs

Importerar en ML-KEM nyckel från dess privata startvärde.

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

Parametrar

algorithm
MLKemAlgorithm

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

source
ReadOnlySpan<Byte>

Det privata fröet.

Returer

Den importerade nyckeln.

Undantag

source har en längd som inte PrivateSeedSizeInBytes är från algorithm.

algorithm är null.

Ett fel uppstod när nyckeln skulle importeras.

Plattformen stöder inte ML-KEM. Anropare kan använda egenskapen IsSupported för att avgöra om plattformen stöder ML-KEM.

Gäller för