MLKem.ImportDecapsulationKey Methode

Definition

Importiert einen ML-KEM Schlüssel aus einem Entkapselungsschlüssel.

Überlädt

Name Beschreibung
ImportDecapsulationKey(MLKemAlgorithm, Byte[])

Importiert einen ML-KEM Schlüssel aus einem Entkapselungsschlüssel.

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

Importiert einen ML-KEM Schlüssel aus einem Entkapselungsschlüssel.

ImportDecapsulationKey(MLKemAlgorithm, Byte[])

Quelle:
MLKem.cs
Quelle:
MLKem.cs
Quelle:
MLKem.cs

Importiert einen ML-KEM Schlüssel aus einem Entkapselungsschlüssel.

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

Parameter

algorithm
MLKemAlgorithm

Der spezifische ML-KEM Algorithmus für diesen Schlüssel.

source
Byte[]

Entkapselungsschlüssel.

Gibt zurück

Der importierte Schlüssel.

Ausnahmen

source hat eine ungültige Länge für den ML-KEM Algorithmus.

algorithm ist null.

-oder-

source ist null.

Fehler beim Importieren des Schlüssels.

Die Plattform unterstützt ML-KEM nicht. Anrufer können die IsSupported Eigenschaft verwenden, um festzustellen, ob die Plattform ML-KEM unterstützt.

Gilt für:

ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)

Quelle:
MLKem.cs
Quelle:
MLKem.cs
Quelle:
MLKem.cs

Importiert einen ML-KEM Schlüssel aus einem Entkapselungsschlüssel.

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

Parameter

algorithm
MLKemAlgorithm

Der spezifische ML-KEM Algorithmus für diesen Schlüssel.

source
ReadOnlySpan<Byte>

Entkapselungsschlüssel.

Gibt zurück

Der importierte Schlüssel.

Ausnahmen

source hat eine ungültige Länge für den ML-KEM Algorithmus.

algorithm ist null.

Fehler beim Importieren des Schlüssels.

Die Plattform unterstützt ML-KEM nicht. Anrufer können die IsSupported Eigenschaft verwenden, um festzustellen, ob die Plattform ML-KEM unterstützt.

Gilt für: