ECAlgorithm.TryExportECPrivateKeyPem(Span<Char>, Int32) 메서드

정의

PEM으로 인코딩된 ECPrivateKey 형식의 현재 키를 제공된 버퍼로 내보내려고 시도합니다.

public:
 bool TryExportECPrivateKeyPem(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryExportECPrivateKeyPem (Span<char> destination, out int charsWritten);
member this.TryExportECPrivateKeyPem : Span<char> * int -> bool
Public Function TryExportECPrivateKeyPem (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

매개 변수

destination
Span<Char>

PEM으로 인코딩된 ECPrivateKey 데이터를 받을 문자 범위입니다.

charsWritten
Int32

이 메서드가 반환되면 .에 기록된 문자 수를 나타내는 값이 포함됩니다 destination. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

반환

Boolean

destination이 출력을 받을 충분한 크기이면 true, 아니면 false입니다.

예외

키를 내보낼 수 없습니다.

설명

A PEM-encoded ECPrivateKey will begin with -----BEGIN EC PRIVATE KEY----- and end with -----END EC PRIVATE KEY-----, with the base64 encoded DER contents of the key between the PEM boundaries.

          The PEM is encoded according to the IETF RFC 7468 "strict"
          encoding rules.

적용 대상