MLKem.ImportPrivateSeed Método

Definição

Sobrecargas

Name Description
ImportPrivateSeed(MLKemAlgorithm, Byte[])

Importa uma chave ML-KEM do seu valor semente privado.

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

Importa uma chave ML-KEM do seu valor semente privado.

ImportPrivateSeed(MLKemAlgorithm, Byte[])

Origem:
MLKem.cs
Origem:
MLKem.cs
Origem:
MLKem.cs

Importa uma chave ML-KEM do seu valor semente 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

O algoritmo específico ML-KEM para esta chave.

source
Byte[]

A semente privada.

Devoluções

A chave importada.

Exceções

source tem um comprimento que não é o PrivateSeedSizeInBytes de algorithm.

algorithm é null.

-ou-

source é null.

Ocorreu um erro durante a importação da chave.

A plataforma não suporta ML-KEM. Os chamadores podem usar a IsSupported propriedade para determinar se a plataforma suporta ML-KEM.

Aplica-se a

ImportPrivateSeed(MLKemAlgorithm, ReadOnlySpan<Byte>)

Origem:
MLKem.cs
Origem:
MLKem.cs
Origem:
MLKem.cs

Importa uma chave ML-KEM do seu valor semente 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

O algoritmo específico ML-KEM para esta chave.

source
ReadOnlySpan<Byte>

A semente privada.

Devoluções

A chave importada.

Exceções

source tem um comprimento que não é o PrivateSeedSizeInBytes de algorithm.

algorithm é null.

Ocorreu um erro durante a importação da chave.

A plataforma não suporta ML-KEM. Os chamadores podem usar a IsSupported propriedade para determinar se a plataforma suporta ML-KEM.

Aplica-se a