Edit

Share via


CompositeMLDsa.ExportCompositeMLDsaPrivateKey Method

Definition

Overloads

ExportCompositeMLDsaPrivateKey()

Exports the private-key portion of the current key.

ExportCompositeMLDsaPrivateKey(Span<Byte>)

Exports the private-key portion of the current key into the provided buffer.

ExportCompositeMLDsaPrivateKey()

Source:
CompositeMLDsa.cs

Exports the private-key portion of the current key.

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

Returns

Byte[]

The Composite ML-DSA 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

ExportCompositeMLDsaPrivateKey(Span<Byte>)

Source:
CompositeMLDsa.cs

Exports the private-key portion of the current key into the provided buffer.

public:
 int ExportCompositeMLDsaPrivateKey(Span<System::Byte> destination);
public int ExportCompositeMLDsaPrivateKey(Span<byte> destination);
member this.ExportCompositeMLDsaPrivateKey : Span<byte> -> int
Public Function ExportCompositeMLDsaPrivateKey (destination As Span(Of Byte)) As Integer

Parameters

destination
Span<Byte>

The buffer to receive the Composite ML-DSA private key value.

Returns

The number of bytes written to the destination buffer.

Exceptions

This instance has been disposed.

destination wasn't large enough to hold the result.

-or-

An error occurred while exporting the key.

Applies to