MLKem.ImportDecapsulationKey Metod

Definition

Överlagringar

Name Description
ImportDecapsulationKey(MLKemAlgorithm, Byte[])

Importerar en ML-KEM nyckel från en inkapslingsnyckel.

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

Importerar en ML-KEM nyckel från en inkapslingsnyckel.

ImportDecapsulationKey(MLKemAlgorithm, Byte[])

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

Importerar en ML-KEM nyckel från en inkapslingsnyckel.

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

Parametrar

algorithm
MLKemAlgorithm

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

source
Byte[]

Inkapslingsnyckeln.

Returer

Den importerade nyckeln.

Undantag

source har en längd som inte är giltig för ML-KEM-algoritmen.

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

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

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

Importerar en ML-KEM nyckel från en inkapslingsnyckel.

public:
 static System::Security::Cryptography::MLKem ^ ImportDecapsulationKey(System::Security::Cryptography::MLKemAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.MLKem ImportDecapsulationKey(System.Security.Cryptography.MLKemAlgorithm algorithm, ReadOnlySpan<byte> source);
static member ImportDecapsulationKey : System.Security.Cryptography.MLKemAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
Public Shared Function ImportDecapsulationKey (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>

Inkapslingsnyckeln.

Returer

Den importerade nyckeln.

Undantag

source har en längd som inte är giltig för ML-KEM-algoritmen.

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