MLKem.ImportDecapsulationKey Methode

Definitie

Hiermee importeert u een ML-KEM sleutel uit een ontkapselingssleutel.

Overloads

Name Description
ImportDecapsulationKey(MLKemAlgorithm, Byte[])

Hiermee importeert u een ML-KEM sleutel uit een ontkapselingssleutel.

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

Hiermee importeert u een ML-KEM sleutel uit een ontkapselingssleutel.

ImportDecapsulationKey(MLKemAlgorithm, Byte[])

Bron:
MLKem.cs
Bron:
MLKem.cs
Bron:
MLKem.cs

Hiermee importeert u een ML-KEM sleutel uit een ontkapselingssleutel.

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

Parameters

algorithm
MLKemAlgorithm

Het specifieke ML-KEM-algoritme voor deze sleutel.

source
Byte[]

De ontkapselingssleutel.

Retouren

De geïmporteerde sleutel.

Uitzonderingen

source heeft een ongeldige lengte voor het ML-KEM algoritme.

algorithm is null.

– of –

source is null.

Er is een fout opgetreden tijdens het importeren van de sleutel.

Het platform biedt geen ondersteuning voor ML-KEM. Bellers kunnen de IsSupported eigenschap gebruiken om te bepalen of het platform ML-KEM ondersteunt.

Van toepassing op

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

Bron:
MLKem.cs
Bron:
MLKem.cs
Bron:
MLKem.cs

Hiermee importeert u een ML-KEM sleutel uit een ontkapselingssleutel.

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

Parameters

algorithm
MLKemAlgorithm

Het specifieke ML-KEM-algoritme voor deze sleutel.

source
ReadOnlySpan<Byte>

De ontkapselingssleutel.

Retouren

De geïmporteerde sleutel.

Uitzonderingen

source heeft een ongeldige lengte voor het ML-KEM algoritme.

algorithm is null.

Er is een fout opgetreden tijdens het importeren van de sleutel.

Het platform biedt geen ondersteuning voor ML-KEM. Bellers kunnen de IsSupported eigenschap gebruiken om te bepalen of het platform ML-KEM ondersteunt.

Van toepassing op