SlhDsa.ImportEncryptedPkcs8PrivateKey Método

Definição

Sobrecargas

Name Description
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Importa uma chave privada SLH-DSA de uma estrutura PKCS#8 EncryptedPrivateKeyInfo.

ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

Importa uma chave privada SLH-DSA de uma estrutura PKCS#8 EncryptedPrivateKeyInfo.

ImportEncryptedPkcs8PrivateKey(String, Byte[])

Importa uma chave privada SLH-DSA de uma estrutura PKCS#8 EncryptedPrivateKeyInfo.

ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Origem:
SlhDsa.cs
Origem:
SlhDsa.cs
Origem:
SlhDsa.cs

Importa uma chave privada SLH-DSA de uma estrutura PKCS#8 EncryptedPrivateKeyInfo.

public:
 static System::Security::Cryptography::SlhDsa ^ ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<System::Byte> passwordBytes, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source);
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportEncryptedPkcs8PrivateKey (passwordBytes As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte)) As SlhDsa

Parâmetros

passwordBytes
ReadOnlySpan<Byte>

Os bytes a usar como palavra-passe ao desencriptar o material da chave.

source
ReadOnlySpan<Byte>

Os bytes de uma estrutura PKCS#8 EncryptedPrivateKeyInfo na codificação ASN.1-BER.

Devoluções

A chave importada.

Exceções

O conteúdo de source não representa uma estrutura PKCS#8 EncryptedPrivateKeyInfo codificada em ASN.1-BER.

-ou-

A palavra-passe especificada está incorreta.

-ou-

O EncryptedPrivateKeyInfo indica que a Função de Derivação de Chaves (KDF) a aplicar é a antiga PKCS#12 KDF, que requer Charpalavras-passe baseadas em .

-ou-

O valor não representa uma chave SLH-DSA.

-ou-

source contém dados finais após a estrutura ASN.1.

-ou-

A importação específica do algoritmo falhou.

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

Aplica-se a

ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

Origem:
SlhDsa.cs
Origem:
SlhDsa.cs
Origem:
SlhDsa.cs

Importa uma chave privada SLH-DSA de uma estrutura PKCS#8 EncryptedPrivateKeyInfo.

public:
 static System::Security::Cryptography::SlhDsa ^ ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source);
static member ImportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * ReadOnlySpan<byte> -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportEncryptedPkcs8PrivateKey (password As ReadOnlySpan(Of Char), source As ReadOnlySpan(Of Byte)) As SlhDsa

Parâmetros

password
ReadOnlySpan<Char>

A palavra-passe a usar ao desencriptar o material da chave.

source
ReadOnlySpan<Byte>

Os bytes de uma estrutura PKCS#8 EncryptedPrivateKeyInfo na codificação ASN.1-BER.

Devoluções

A chave importada.

Exceções

O conteúdo de source não representa uma estrutura PKCS#8 EncryptedPrivateKeyInfo codificada em ASN.1-BER.

-ou-

A palavra-passe especificada está incorreta.

-ou-

O valor não representa uma chave SLH-DSA.

-ou-

source contém dados finais após a estrutura ASN.1.

-ou-

A importação específica do algoritmo falhou.

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

Aplica-se a

ImportEncryptedPkcs8PrivateKey(String, Byte[])

Origem:
SlhDsa.cs
Origem:
SlhDsa.cs
Origem:
SlhDsa.cs

Importa uma chave privada SLH-DSA de uma estrutura PKCS#8 EncryptedPrivateKeyInfo.

public:
 static System::Security::Cryptography::SlhDsa ^ ImportEncryptedPkcs8PrivateKey(System::String ^ password, cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.SlhDsa ImportEncryptedPkcs8PrivateKey(string password, byte[] source);
static member ImportEncryptedPkcs8PrivateKey : string * byte[] -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportEncryptedPkcs8PrivateKey (password As String, source As Byte()) As SlhDsa

Parâmetros

password
String

A palavra-passe a usar ao desencriptar o material da chave.

source
Byte[]

Os bytes de uma estrutura PKCS#8 EncryptedPrivateKeyInfo na codificação ASN.1-BER.

Devoluções

A chave importada.

Exceções

password ou source é null.

Aplica-se a