Edit

Share via


SlhDsa.ExportPkcs8PrivateKey Method

Definition

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

public:
 cli::array <System::Byte> ^ ExportPkcs8PrivateKey();
public byte[] ExportPkcs8PrivateKey();
member this.ExportPkcs8PrivateKey : unit -> byte[]
Public Function ExportPkcs8PrivateKey () As Byte()

Returns

Byte[]

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

Exceptions

This instance has been disposed.

This instance only represents a public key.

-or-

The private key is not exportable.

-or-

An error occurred while exporting the key.

Applies to