SlhDsa.TryExportPkcs8PrivateKey(Span<Byte>, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente d’exporter la clé actuelle au format PKCS#8 PrivateKeyInfo dans la mémoire tampon fournie.
public:
bool TryExportPkcs8PrivateKey(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten);
member this.TryExportPkcs8PrivateKey : Span<byte> * int -> bool
Public Function TryExportPkcs8PrivateKey (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
Paramètres
- bytesWritten
- Int32
Lorsque cette méthode est retournée, contient le nombre d’octets écrits dans la destination mémoire tampon.
Ce paramètre est traité comme non initialisé.
Retours
true s’il destination était assez grand pour contenir le résultat ; sinon, false.
Exceptions
Cette instance a été supprimée.
Une erreur s’est produite lors de l’exportation de la clé.