Edit

Share via


CompositeMLDsa.ExportCompositeMLDsaPublicKey Method

Definition

Overloads

ExportCompositeMLDsaPublicKey()

Exports the public-key portion of the current key.

ExportCompositeMLDsaPublicKey(Span<Byte>)

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

ExportCompositeMLDsaPublicKey()

Source:
CompositeMLDsa.cs

Exports the public-key portion of the current key.

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

Returns

Byte[]

The Composite ML-DSA public key.

Exceptions

An error occurred while exporting the key.

The object has already been disposed.

Applies to

ExportCompositeMLDsaPublicKey(Span<Byte>)

Source:
CompositeMLDsa.cs

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

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

Parameters

destination
Span<Byte>

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

Returns

The number of bytes written to the destination buffer.

Exceptions

This instance has been disposed.

destination was too not large enough to hold the result.

-or-

An error occurred while exporting the key.

Applies to