RSA.TryExportRSAPublicKeyPem(Span<Char>, Int32) メソッド

定義

PEM でエンコードされた PKCS#1 RSAPublicKey 形式の現在のキーを、指定されたバッファーにエクスポートしようとします。

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

パラメーター

destination
Span<Char>

PEM でエンコードされた PKCS#1 RSAPublicKey データを受信する文字スパン。

charsWritten
Int32

このメソッドが返されるときに、書き込まれた destination文字数を示す値が格納されます。 このパラメーターは初期化前として処理されます。

戻り値

Boolean

destination が出力を受け入れるだけの十分な大きさの場合は true。それ以外の場合は false

例外

キーをエクスポートすることができませんでした。

注釈

A PEM-encoded PKCS#1 RSAPublicKey will begin with -----BEGIN RSA PUBLIC KEY----- and end with -----END RSA PUBLIC 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.

適用対象