MLKem.ImportPrivateSeed Método

Definición

Importa una clave ML-KEM a partir de su valor de inicialización privado.

Sobrecargas

Nombre Description
ImportPrivateSeed(MLKemAlgorithm, Byte[])

Importa una clave ML-KEM a partir de su valor de inicialización privado.

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

Importa una clave ML-KEM a partir de su valor de inicialización privado.

ImportPrivateSeed(MLKemAlgorithm, Byte[])

Source:
MLKem.cs
Source:
MLKem.cs
Source:
MLKem.cs

Importa una clave ML-KEM a partir de su valor de inicialización privado.

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

Parámetros

algorithm
MLKemAlgorithm

Algoritmo de ML-KEM específico para esta clave.

source
Byte[]

Inicialización privada.

Devoluciones

Clave importada.

Excepciones

source tiene una longitud que no es de PrivateSeedSizeInBytesalgorithm.

algorithm es null.

-o bien-

source es null.

Error al importar la clave.

La plataforma no admite ML-KEM. Los autores de llamadas pueden usar la IsSupported propiedad para determinar si la plataforma admite ML-KEM.

Se aplica a

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

Source:
MLKem.cs
Source:
MLKem.cs
Source:
MLKem.cs

Importa una clave ML-KEM a partir de su valor de inicialización privado.

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

Parámetros

algorithm
MLKemAlgorithm

Algoritmo de ML-KEM específico para esta clave.

source
ReadOnlySpan<Byte>

Inicialización privada.

Devoluciones

Clave importada.

Excepciones

source tiene una longitud que no es de PrivateSeedSizeInBytesalgorithm.

algorithm es null.

Error al importar la clave.

La plataforma no admite ML-KEM. Los autores de llamadas pueden usar la IsSupported propiedad para determinar si la plataforma admite ML-KEM.

Se aplica a