Edit

Share via


MLKem.ExportPkcs8PrivateKey Method

Definition

Export the current key in the PKCS#8 PrivateKeyInfo format.

public:
 cli::array <System::Byte> ^ ExportPkcs8PrivateKey();
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportPkcs8PrivateKey();
public byte[] ExportPkcs8PrivateKey();
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportPkcs8PrivateKey : unit -> byte[]
member this.ExportPkcs8PrivateKey : unit -> byte[]
Public Function ExportPkcs8PrivateKey () As Byte()

Returns

Byte[]

A byte array containing the PKCS#8 PrivateKeyInfo representation of this key.

Attributes

Exceptions

This instance has been disposed.

An error occurred while exporting the key.

Applies to