ECDiffieHellmanCng.TryExportPkcs8PrivateKey(Span<Byte>, Int32) メソッド

定義

PKCS#8 PrivateKeyInfo 形式の現在のキーを、指定のバッファーにエクスポートすることを試みます。

public:
 override bool TryExportPkcs8PrivateKey(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public override bool TryExportPkcs8PrivateKey (Span<byte> destination, out int bytesWritten);
override this.TryExportPkcs8PrivateKey : Span<byte> * int -> bool
Public Overrides Function TryExportPkcs8PrivateKey (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

パラメーター

destination
Span<Byte>

PKCS#8 PrivateKeyInfo データを受け取るバイト スパン。

bytesWritten
Int32

このメソッドが戻るときに、destination に書き込まれたバイト数を示す値が含まれます。 このパラメーターは初期化前として処理されます。

戻り値

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

適用対象