Language

SlhDsa.ExportSlhDsaPrivateKey Method

Definition

Exports the current key in the FIPS 205 private key format.

Overloads

Name Description
ExportSlhDsaPrivateKey()

Exports the current key in the FIPS 205 private key format.

ExportSlhDsaPrivateKey(Span<Byte>)

Exports the current key in the FIPS 205 private key format.

ExportSlhDsaPrivateKey()

Source:
SlhDsa.cs
Source:
SlhDsa.cs
Source:
SlhDsa.cs

Exports the current key in the FIPS 205 private key format.

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

Returns

Byte[]

The FIPS 205 private key.

Exceptions

The current instance cannot export a private key.

-or-

An error occurred while exporting the key.

The object has already been disposed.

Applies to

ExportSlhDsaPrivateKey(Span<Byte>)

Source:
SlhDsa.cs
Source:
SlhDsa.cs
Source:
SlhDsa.cs

Exports the current key in the FIPS 205 private key format.

public:
 void ExportSlhDsaPrivateKey(Span<System::Byte> destination);
public void ExportSlhDsaPrivateKey(Span<byte> destination);
member this.ExportSlhDsaPrivateKey : Span<byte> -> unit
Public Sub ExportSlhDsaPrivateKey (destination As Span(Of Byte))

Parameters

destination
Span<Byte>

The buffer to receive the private key. Its length must be exactly PrivateKeySizeInBytes.

Exceptions

destination is the incorrect length to receive the private key.

The current instance cannot export a private key.

-or-

An error occurred while exporting the key.

The object has already been disposed.

Applies to