MLDsa.TryExportPkcs8PrivateKeyCore(Span<Byte>, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, attempts to export the current key in the PKCS#8 PrivateKeyInfo format into the provided buffer.
protected:
abstract bool TryExportPkcs8PrivateKeyCore(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected abstract bool TryExportPkcs8PrivateKeyCore(Span<byte> destination, out int bytesWritten);
protected abstract bool TryExportPkcs8PrivateKeyCore(Span<byte> destination, out int bytesWritten);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member TryExportPkcs8PrivateKeyCore : Span<byte> * int -> bool
abstract member TryExportPkcs8PrivateKeyCore : Span<byte> * int -> bool
Protected MustOverride Function TryExportPkcs8PrivateKeyCore (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
Parameters
- bytesWritten
- Int32
When this method returns, contains the number of bytes written to the destination buffer.
Returns
true if destination was large enough to hold the result; otherwise, false.
- Attributes
Exceptions
This instance has been disposed.
An error occurred while exporting the key.