MLKem.ImportPrivateSeed 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.
Overloads
| Name | Description |
|---|---|
| ImportPrivateSeed(MLKemAlgorithm, Byte[]) |
Hiermee importeert u een ML-KEM sleutel uit de persoonlijke seed-waarde. |
| ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>) |
Hiermee importeert u een ML-KEM sleutel uit de persoonlijke seed-waarde. |
ImportPrivateSeed(MLKemAlgorithm, Byte[])
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
Hiermee importeert u een ML-KEM sleutel uit de persoonlijke seed-waarde.
public:
static System::Security::Cryptography::MLKem ^ ImportPrivateSeed(System::Security::Cryptography::MLKemAlgorithm ^ algorithm, cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.MLKem ImportPrivateSeed(System.Security.Cryptography.MLKemAlgorithm algorithm, byte[] source);
static member ImportPrivateSeed : System.Security.Cryptography.MLKemAlgorithm * byte[] -> System.Security.Cryptography.MLKem
Public Shared Function ImportPrivateSeed (algorithm As MLKemAlgorithm, source As Byte()) As MLKem
Parameters
- algorithm
- MLKemAlgorithm
Het specifieke ML-KEM-algoritme voor deze sleutel.
- source
- Byte[]
Het privézaad.
Retouren
De geïmporteerde sleutel.
Uitzonderingen
source heeft een lengte die niet de PrivateSeedSizeInBytes van algorithm.
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
ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
- Bron:
- MLKem.cs
Hiermee importeert u een ML-KEM sleutel uit de persoonlijke seed-waarde.
public:
static System::Security::Cryptography::MLKem ^ ImportPrivateSeed(System::Security::Cryptography::MLKemAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.MLKem ImportPrivateSeed(System.Security.Cryptography.MLKemAlgorithm algorithm, ReadOnlySpan<byte> source);
static member ImportPrivateSeed : System.Security.Cryptography.MLKemAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
Public Shared Function ImportPrivateSeed (algorithm As MLKemAlgorithm, source As ReadOnlySpan(Of Byte)) As MLKem
Parameters
- algorithm
- MLKemAlgorithm
Het specifieke ML-KEM-algoritme voor deze sleutel.
- source
- ReadOnlySpan<Byte>
Het privézaad.
Retouren
De geïmporteerde sleutel.
Uitzonderingen
source heeft een lengte die niet de PrivateSeedSizeInBytes van algorithm.
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.