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