MLDsa.TryExportPkcs8PrivateKey(Span<Byte>, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试将 PKCS#8 PrivateKeyInfo 格式的当前密钥导出到提供的缓冲区中。
public:
bool TryExportPkcs8PrivateKey(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten);
public bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.TryExportPkcs8PrivateKey : Span<byte> * int -> bool
member this.TryExportPkcs8PrivateKey : Span<byte> * int -> bool
Public Function TryExportPkcs8PrivateKey (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
参数
返回
true 如果 destination 足够大来保存结果,则为 ;否则为 false。
- 特性
例外
此实例已释放。
导出密钥时出错。