SlhDsa.TryExportPkcs8PrivateKey(Span<Byte>, Int32) Metod

Definition

Försöker exportera den aktuella nyckeln i PKCS#8 PrivateKeyInfo-formatet till den angivna bufferten.

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

Parametrar

destination
Span<Byte>

Bufferten för att ta emot PKCS#8 PrivateKeyInfo-värdet.

bytesWritten
Int32

När den här metoden returnerar innehåller antalet byte som skrivits till bufferten destination .

Den här parametern behandlas som oinitierad.

Returer

trueom destination var tillräckligt stor för att hålla resultatet, annars . false

Undantag

Den här instansen har tagits bort.

Ett fel uppstod när nyckeln exporterades.

Gäller för