MLKem.ImportPrivateSeed Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.
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.