ECAlgorithm.TryExportECPrivateKeyPem(Span<Char>, Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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
매개 변수
- charsWritten
- Int32
이 메서드가 반환되면 .에 기록된 문자 수를 나타내는 값이 포함됩니다 destination
. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.
반환
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.