RSA.TryExportRSAPrivateKeyPem(Span<Char>, Int32) Metodo

Definizione

Tenta di esportare la chiave corrente nel formato PKCS#1 RSAPrivateKey con codifica PEM in un buffer fornito.

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

Parametri

destination
Span<Char>

Intervallo di caratteri per ricevere i dati PKCS#1 RSAPrivateKey con codifica PEM.

charsWritten
Int32

Quando termina, questo metodo contiene un valore che indica il numero di caratteri scritti in destination. Questo parametro viene considerato non inizializzato.

Valori restituiti

true se destination è sufficientemente grande da ricevere l'output; in caso contrario, false.

Eccezioni

Impossibile esportare la chiave.

Commenti

Un'entità PKCS#1 RSAPrivateKey con codifica PEM inizierà con -----BEGIN RSA PRIVATE KEY----- e terminerà con -----END RSA PRIVATE KEY-----, con il contenuto DER con codifica Base64 della chiave tra i limiti PEM.

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

Si applica a