Edit

Share via


MLDsa.ExportMLDsaPublicKey Method

Definition

Overloads

ExportMLDsaPublicKey(Span<Byte>)

Exports the public-key portion of the current key in the FIPS 204 public key format.

ExportMLDsaPublicKey()

Exports the public-key portion of the current key in the FIPS 204 public key format.

ExportMLDsaPublicKey(Span<Byte>)

Source:
MLDsa.cs
Source:
MLDsa.cs

Exports the public-key portion of the current key in the FIPS 204 public key format.

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

Parameters

destination
Span<Byte>

The buffer to receive the public key. Its length must be exactly PublicKeySizeInBytes.

Exceptions

destination is the incorrect length to receive the public key.

An error occurred while exporting the key.

The object has already been disposed.

Remarks

destination is required to be exactly PublicKeySizeInBytes in length.

Applies to

ExportMLDsaPublicKey()

Source:
MLDsa.cs

Exports the public-key portion of the current key in the FIPS 204 public key format.

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

Returns

Byte[]

The FIPS 204 public key.

Exceptions

An error occurred while exporting the key.

The object has already been disposed.

Applies to