RSA.TryExportRSAPrivateKey(Span<Byte>, Int32) Método

Definición

Intenta exportar la clave actual en el formato RSAPrivateKey PKCS#1 en un búfer proporcionado.

public:
 virtual bool TryExportRSAPrivateKey(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public virtual bool TryExportRSAPrivateKey(Span<byte> destination, out int bytesWritten);
abstract member TryExportRSAPrivateKey : Span<byte> * int -> bool
override this.TryExportRSAPrivateKey : Span<byte> * int -> bool
Public Overridable Function TryExportRSAPrivateKey (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parámetros

destination
Span<Byte>

Intervalo de bytes para recibir los datos RSAPrivateKey de PKCS#1.

bytesWritten
Int32

Cuando este método devuelve , contiene un valor que indica el número de bytes escritos en destination. Este parámetro se trata como sin inicializar.

Devoluciones

true si destination es lo suficientemente grande como para recibir la salida; de lo contrario, falsees .

Excepciones

No se pudo exportar la clave.

Se aplica a

Consulte también