Langue

MLKem.ImportPrivateSeed Méthode

Définition

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.

algorithm a la valeur null.

- ou -

source 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.

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.

S’applique à