MLKem.ImportEncapsulationKey Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Importe une clé ML-KEM à partir d’une clé d’encapsulation.
Surcharges
| Nom | Description |
|---|---|
| ImportEncapsulationKey(MLKemAlgorithm, Byte[]) |
Importe une clé ML-KEM à partir d’une clé d’encapsulation. |
| ImportEncapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>) |
Importe une clé ML-KEM à partir d’une clé d’encapsulation. |
ImportEncapsulationKey(MLKemAlgorithm, Byte[])
- Source:
- MLKem.cs
- Source:
- MLKem.cs
- Source:
- MLKem.cs
Importe une clé ML-KEM à partir d’une clé d’encapsulation.
public:
static System::Security::Cryptography::MLKem ^ ImportEncapsulationKey(System::Security::Cryptography::MLKemAlgorithm ^ algorithm, cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.MLKem ImportEncapsulationKey(System.Security.Cryptography.MLKemAlgorithm algorithm, byte[] source);
static member ImportEncapsulationKey : System.Security.Cryptography.MLKemAlgorithm * byte[] -> System.Security.Cryptography.MLKem
Public Shared Function ImportEncapsulationKey (algorithm As MLKemAlgorithm, source As Byte()) As MLKem
Paramètres
- algorithm
- MLKemAlgorithm
Algorithme de ML-KEM spécifique pour cette clé.
- source
- Byte[]
Touche d’encapsulation.
Retours
Clé importée.
Exceptions
source a une longueur qui n’est pas valide pour l’algorithme ML-KEM.
Une erreur s’est produite lors de l’importation de la clé.
La plateforme ne prend pas en charge ML-KEM. Les appelants peuvent utiliser la IsSupported propriété pour déterminer si la plateforme prend en charge ML-KEM.
S’applique à
ImportEncapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)
- Source:
- MLKem.cs
- Source:
- MLKem.cs
- Source:
- MLKem.cs
Importe une clé ML-KEM à partir d’une clé d’encapsulation.
public:
static System::Security::Cryptography::MLKem ^ ImportEncapsulationKey(System::Security::Cryptography::MLKemAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.MLKem ImportEncapsulationKey(System.Security.Cryptography.MLKemAlgorithm algorithm, ReadOnlySpan<byte> source);
static member ImportEncapsulationKey : System.Security.Cryptography.MLKemAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.MLKem
Public Shared Function ImportEncapsulationKey (algorithm As MLKemAlgorithm, source As ReadOnlySpan(Of Byte)) As MLKem
Paramètres
- algorithm
- MLKemAlgorithm
Algorithme de ML-KEM spécifique pour cette clé.
- source
- ReadOnlySpan<Byte>
Touche d’encapsulation.
Retours
Clé importée.
Exceptions
source a une longueur qui n’est pas valide pour l’algorithme ML-KEM.
algorithm est null
Une erreur s’est produite lors de l’importation de la clé.
La plateforme ne prend pas en charge ML-KEM. Les appelants peuvent utiliser la IsSupported propriété pour déterminer si la plateforme prend en charge ML-KEM.