MLDsa.ExportEncryptedPkcs8PrivateKey Metoda

Definice

Exportuje aktuální klíč ve formátu PKCS#8 EncryptedPrivateKeyInfo s bajtovým heslem.

Přetížení

Name Description
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

Exportuje aktuální klíč ve formátu PKCS#8 EncryptedPrivateKeyInfo s bajtovým heslem.

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

Exportuje aktuální klíč ve formátu PKCS#8 EncryptedPrivateKeyInfo pomocí hesla založeného na znaku.

ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

Exportuje aktuální klíč ve formátu PKCS#8 EncryptedPrivateKeyInfo pomocí hesla založeného na znaku.

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

Zdroj:
MLDsa.cs
Zdroj:
MLDsa.cs
Zdroj:
MLDsa.cs

Exportuje aktuální klíč ve formátu PKCS#8 EncryptedPrivateKeyInfo s bajtovým heslem.

public:
 cli::array <System::Byte> ^ ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<System::Byte> passwordBytes, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> byte[]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> byte[]
Public Function ExportEncryptedPkcs8PrivateKey (passwordBytes As ReadOnlySpan(Of Byte), pbeParameters As PbeParameters) As Byte()

Parametry

passwordBytes
ReadOnlySpan<Byte>

Bajty, které se mají použít jako heslo při šifrování materiálu klíče.

pbeParameters
PbeParameters

Parametry šifrování založené na heslech (PBE), které se mají použít při šifrování materiálu klíče.

Návraty

Byte[]

Pole bajtů obsahující reprezentaci tohoto klíče PKCS#8 EncryptedPrivateKeyInfo.

Atributy

Výjimky

pbeParameters je null.

Tato instance byla odstraněna.

pbeParameters určuje KDF, které vyžaduje heslo založené na znaku.

nebo

pbeParameters nepředstavuje platný šifrovací algoritmus založený na heslech.

nebo

Tato instance představuje pouze veřejný klíč.

nebo

Privátní klíč není možné exportovat.

nebo

Při exportu klíče došlo k chybě.

Platí pro

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

Zdroj:
MLDsa.cs
Zdroj:
MLDsa.cs
Zdroj:
MLDsa.cs

Exportuje aktuální klíč ve formátu PKCS#8 EncryptedPrivateKeyInfo pomocí hesla založeného na znaku.

public:
 cli::array <System::Byte> ^ ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> byte[]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> byte[]
Public Function ExportEncryptedPkcs8PrivateKey (password As ReadOnlySpan(Of Char), pbeParameters As PbeParameters) As Byte()

Parametry

password
ReadOnlySpan<Char>

Heslo, které se má použít při šifrování materiálu klíče.

pbeParameters
PbeParameters

Parametry šifrování založené na heslech (PBE), které se mají použít při šifrování materiálu klíče.

Návraty

Byte[]

Pole bajtů obsahující reprezentaci tohoto klíče PKCS#8 EncryptedPrivateKeyInfo.

Atributy

Výjimky

pbeParameters je null.

Tato instance byla odstraněna.

pbeParameters nepředstavuje platný šifrovací algoritmus založený na heslech.

nebo

Tato instance představuje pouze veřejný klíč.

nebo

Privátní klíč není možné exportovat.

nebo

Při exportu klíče došlo k chybě.

Platí pro

ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

Zdroj:
MLDsa.cs
Zdroj:
MLDsa.cs
Zdroj:
MLDsa.cs

Exportuje aktuální klíč ve formátu PKCS#8 EncryptedPrivateKeyInfo pomocí hesla založeného na znaku.

public:
 cli::array <System::Byte> ^ ExportEncryptedPkcs8PrivateKey(System::String ^ password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportEncryptedPkcs8PrivateKey(string password, System.Security.Cryptography.PbeParameters pbeParameters);
public byte[] ExportEncryptedPkcs8PrivateKey(string password, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKey : string * System.Security.Cryptography.PbeParameters -> byte[]
member this.ExportEncryptedPkcs8PrivateKey : string * System.Security.Cryptography.PbeParameters -> byte[]
Public Function ExportEncryptedPkcs8PrivateKey (password As String, pbeParameters As PbeParameters) As Byte()

Parametry

password
String

Heslo, které se má použít při šifrování materiálu klíče.

pbeParameters
PbeParameters

Parametry šifrování založené na heslech (PBE), které se mají použít při šifrování materiálu klíče.

Návraty

Byte[]

Pole bajtů obsahující reprezentaci tohoto klíče PKCS#8 EncryptedPrivateKeyInfo.

Atributy

Výjimky

password nebo pbeParameters je null.

Platí pro