ECDiffieHellmanCng.TryExportEncryptedPkcs8PrivateKey Metoda

Definicja

Przeciążenia

TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

Próbuje wyeksportować bieżący klucz w formacie PKCS#8 EncryptedPrivateKeyInfo do dostarczonego buforu przy użyciu hasła opartego na bajtach.

TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

Próbuje wyeksportować bieżący klucz w formacie PKCS#8 EncryptedPrivateKeyInfo do dostarczonego buforu przy użyciu hasła opartego na znakach.

TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

Próbuje wyeksportować bieżący klucz w formacie PKCS#8 EncryptedPrivateKeyInfo do dostarczonego buforu przy użyciu hasła opartego na bajtach.

public:
 override bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<System::Byte> passwordBytes, System::Security::Cryptography::PbeParameters ^ pbeParameters, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public override bool TryExportEncryptedPkcs8PrivateKey (ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten);
override this.TryExportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters * Span<byte> * int -> bool
Public Overrides Function TryExportEncryptedPkcs8PrivateKey (passwordBytes As ReadOnlySpan(Of Byte), pbeParameters As PbeParameters, destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parametry

passwordBytes
ReadOnlySpan<Byte>

Bajty używane jako hasło podczas szyfrowania materiału klucza.

pbeParameters
PbeParameters

Parametry szyfrowania opartego na hasłach (PBE) używane podczas szyfrowania materiału klucza.

destination
Span<Byte>

Zakres bajtów do odbierania danych PKCS#8 EncryptedPrivateKeyInfo.

bytesWritten
Int32

Gdy ta metoda zwraca wartość , zawiera wartość, która wskazuje liczbę bajtów zapisanych w obiekcie destination. Ten parametr jest traktowany jako niezainicjowany.

Zwraca

truejeśli destination jest wystarczająco duży, aby otrzymać dane wyjściowe; w przeciwnym razie . false

Dotyczy

TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

Próbuje wyeksportować bieżący klucz w formacie PKCS#8 EncryptedPrivateKeyInfo do dostarczonego buforu przy użyciu hasła opartego na znakach.

public:
 override bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, System::Security::Cryptography::PbeParameters ^ pbeParameters, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public override bool TryExportEncryptedPkcs8PrivateKey (ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten);
override this.TryExportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters * Span<byte> * int -> bool
Public Overrides Function TryExportEncryptedPkcs8PrivateKey (password As ReadOnlySpan(Of Char), pbeParameters As PbeParameters, destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parametry

password
ReadOnlySpan<Char>

Hasło do użycia podczas szyfrowania materiału klucza.

pbeParameters
PbeParameters

Parametry szyfrowania opartego na hasłach (PBE) używane podczas szyfrowania materiału klucza.

destination
Span<Byte>

Zakres bajtów do odbierania danych PKCS#8 EncryptedPrivateKeyInfo.

bytesWritten
Int32

Gdy ta metoda zwraca wartość , zawiera wartość, która wskazuje liczbę bajtów zapisanych w obiekcie destination. Ten parametr jest traktowany jako niezainicjowany.

Zwraca

truejeśli destination jest wystarczająco duży, aby otrzymać dane wyjściowe; w przeciwnym razie . false

Dotyczy