ECDiffieHellmanCng.ImportPkcs8PrivateKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
解密後,從 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的位元組數的值。 此參數被視為未初始化。