MLKem.ImportDecapsulationKey Metoda

Definice

Importuje klíč ML-KEM z klíče zapouzdření.

Přetížení

Name Description
ImportDecapsulationKey(MLKemAlgorithm, Byte[])

Importuje klíč ML-KEM z klíče zapouzdření.

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

Importuje klíč ML-KEM z klíče zapouzdření.

ImportDecapsulationKey(MLKemAlgorithm, Byte[])

Zdroj:
MLKem.cs
Zdroj:
MLKem.cs
Zdroj:
MLKem.cs

Importuje klíč ML-KEM z klíče zapouzdření.

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

Parametry

algorithm
MLKemAlgorithm

Konkrétní algoritmus ML-KEM pro tento klíč.

source
Byte[]

Klíč zapouzdření.

Návraty

Importovaný klíč.

Výjimky

source má délku, která není platná pro algoritmus ML-KEM.

algorithm je null.

nebo

source je null.

Při importu klíče došlo k chybě.

Platforma nepodporuje ML-KEM. Volající můžou vlastnost použít IsSupported k určení, jestli platforma podporuje ML-KEM.

Platí pro

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

Zdroj:
MLKem.cs
Zdroj:
MLKem.cs
Zdroj:
MLKem.cs

Importuje klíč ML-KEM z klíče zapouzdření.

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

Parametry

algorithm
MLKemAlgorithm

Konkrétní algoritmus ML-KEM pro tento klíč.

source
ReadOnlySpan<Byte>

Klíč zapouzdření.

Návraty

Importovaný klíč.

Výjimky

source má délku, která není platná pro algoritmus ML-KEM.

algorithm je null.

Při importu klíče došlo k chybě.

Platforma nepodporuje ML-KEM. Volající můžou vlastnost použít IsSupported k určení, jestli platforma podporuje ML-KEM.

Platí pro