語言

RSACng.ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32) 方法

定義

解密後,從 PKCS#8 PrivateKeyInfo 結構匯入公私鑰對,替換此物件的金鑰。

public:
 override void ImportPkcs8PrivateKey(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] int % bytesRead);
public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead);
override this.ImportPkcs8PrivateKey : ReadOnlySpan<byte> * int -> unit
Public Overrides Sub ImportPkcs8PrivateKey (source As ReadOnlySpan(Of Byte), ByRef bytesRead As Integer)

參數

source
ReadOnlySpan<Byte>

APCS#8 PrivateKeyInfo 結構在 ASN.1-BER 編碼中的位元組。

bytesRead
Int32

當此方法回傳時,包含一個表示從 讀取 source的位元組數的值。 此參數被視為未初始化。

適用於