Edit

Share via


SlhDsa.ExportSlhDsaPublicKey Method

Definition

Overloads

ExportSlhDsaPublicKey()

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

ExportSlhDsaPublicKey(Span<Byte>)

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

ExportSlhDsaPublicKey()

Source:
SlhDsa.cs

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

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

Returns

Byte[]

The FIPS 205 public key.

Exceptions

An error occurred while exporting the key.

The object has already been disposed.

Applies to

ExportSlhDsaPublicKey(Span<Byte>)

Source:
SlhDsa.cs
Source:
SlhDsa.cs

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

public:
 void ExportSlhDsaPublicKey(Span<System::Byte> destination);
public void ExportSlhDsaPublicKey(Span<byte> destination);
member this.ExportSlhDsaPublicKey : Span<byte> -> unit
Public Sub ExportSlhDsaPublicKey (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