Edit

Share via


MLDsa.ExportMLDsaPrivateSeed Method

Definition

Overloads

ExportMLDsaPrivateSeed()

Exports the private seed in the FIPS 204 private seed format.

ExportMLDsaPrivateSeed(Span<Byte>)

Exports the private seed of the current key.

ExportMLDsaPrivateSeed()

Source:
MLDsa.cs

Exports the private seed in the FIPS 204 private seed format.

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

Returns

Byte[]

The FIPS 204 private seed.

Exceptions

An error occurred while exporting the key.

The object has already been disposed.

Applies to

ExportMLDsaPrivateSeed(Span<Byte>)

Source:
MLDsa.cs
Source:
MLDsa.cs

Exports the private seed of the current key.

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

Parameters

destination
Span<Byte>

The buffer to receive the private seed. Its length must be exactly PrivateSeedSizeInBytes.

Exceptions

destination is the incorrect length to receive the private seed.

An error occurred while exporting the private seed.

Applies to