MLKem.ImportDecapsulationKey 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é de décapsulation.
Surcharges
| Nom | Description |
|---|---|
| ImportDecapsulationKey(MLKemAlgorithm, Byte[]) |
Importe une clé ML-KEM à partir d’une clé de décapsulation. |
| ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>) |
Importe une clé ML-KEM à partir d’une clé de décapsulation. |
ImportDecapsulationKey(MLKemAlgorithm, Byte[])
- Source:
- MLKem.cs
- Source:
- MLKem.cs
- Source:
- MLKem.cs
Importe une clé ML-KEM à partir d’une clé de décapsulation.
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
Paramètres
- algorithm
- MLKemAlgorithm
Algorithme de ML-KEM spécifique pour cette clé.
- source
- Byte[]
Clé de décapsulation.
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 à
ImportDecapsulationKey(MLKemAlgorithm, ReadOnlySpan<Byte>)
- Source:
- MLKem.cs
- Source:
- MLKem.cs
- Source:
- MLKem.cs
Importe une clé ML-KEM à partir d’une clé de décapsulation.
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
Paramètres
- algorithm
- MLKemAlgorithm
Algorithme de ML-KEM spécifique pour cette clé.
- source
- ReadOnlySpan<Byte>
Clé de décapsulation.
Retours
Clé importée.
Exceptions
source a une longueur qui n’est pas valide pour l’algorithme ML-KEM.
algorithm a la valeur 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.