MLKem.ImportDecapsulationKey Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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.
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.