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

Définition

Tente d’exporter la clé actuelle au format RSAPrivateKey PKCS#1 dans une mémoire tampon fournie.

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

Paramètres

destination
Span<Byte>

Étendue d’octets pour recevoir les données RSAPrivateKey PKCS#1.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient une valeur qui indique le nombre d’octets écrits dans destination. Ce paramètre est traité comme non initialisé.

Retours

true s’il destination est assez grand pour recevoir la sortie ; sinon, false.

Exceptions

Impossible d’exporter la clé.

S’applique à

Voir aussi