Compartir a través de


ECAlgorithm.TryExportECPrivateKeyPem(Span<Char>, Int32) Método

Definición

Intenta exportar la clave actual en el formato ECPrivateKey codificado en PEM en un búfer proporcionado.

public:
 bool TryExportECPrivateKeyPem(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryExportECPrivateKeyPem (Span<char> destination, out int charsWritten);
member this.TryExportECPrivateKeyPem : Span<char> * int -> bool
Public Function TryExportECPrivateKeyPem (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

Parámetros

destination
Span<Char>

Intervalo de caracteres para recibir los datos ECPrivateKey codificados en PEM.

charsWritten
Int32

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

Devoluciones

Boolean

true si destination es lo suficientemente grande como para recibir la salida; en caso contrario, false.

Excepciones

No se ha podido exportar la clave.

Comentarios

A PEM-encoded ECPrivateKey will begin with -----BEGIN EC PRIVATE KEY----- and end with -----END EC PRIVATE KEY-----, with the base64 encoded DER contents of the key between the PEM boundaries.

          The PEM is encoded according to the IETF RFC 7468 "strict"
          encoding rules.

Se aplica a