MLDsa.TryExportPkcs8PrivateKeyCore(Span<Byte>, Int32) Méthode

Définition

En cas de substitution dans une classe dérivée, tente d’exporter la clé actuelle au format PKCS#8 PrivateKeyInfo dans la mémoire tampon fournie.

protected:
 abstract bool TryExportPkcs8PrivateKeyCore(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected abstract bool TryExportPkcs8PrivateKeyCore(Span<byte> destination, out int bytesWritten);
protected abstract bool TryExportPkcs8PrivateKeyCore(Span<byte> destination, out int bytesWritten);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member TryExportPkcs8PrivateKeyCore : Span<byte> * int -> bool
abstract member TryExportPkcs8PrivateKeyCore : Span<byte> * int -> bool
Protected MustOverride Function TryExportPkcs8PrivateKeyCore (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Paramètres

destination
Span<Byte>

Mémoire tampon pour recevoir la valeur PKCS#8 PrivateKeyInfo.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient le nombre d’octets écrits dans la destination mémoire tampon.

Retours

true s’il destination était assez grand pour contenir le résultat ; sinon, false.

Attributs

Exceptions

Cette instance a été supprimée.

Une erreur s’est produite lors de l’exportation de la clé.

S’applique à