MLDsa.TryExportPkcs8PrivateKey(Span<Byte>, Int32) 메서드

정의

PKCS#8 PrivateKeyInfo 형식의 현재 키를 제공된 버퍼로 내보내려고 시도합니다.

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

매개 변수

destination
Span<Byte>

PKCS#8 PrivateKeyInfo 값을 받을 버퍼입니다.

bytesWritten
Int32

이 메서드가 반환되면 버퍼에 기록 destination 된 바이트 수를 포함합니다.

이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

반품

결과를 저장할 수 있을 만큼 크면 /&이고, 그렇지 않으면 .

특성

예외

이 인스턴스가 삭제되었습니다.

키를 내보내는 동안 오류가 발생했습니다.

적용 대상