Edit

Share via


MLKem.ExportPrivateSeed Method

Definition

Overloads

ExportPrivateSeed()

Exports the private seed.

ExportPrivateSeed(Span<Byte>)

Exports the private seed into the provided buffer.

ExportPrivateSeed()

Source:
MLKem.cs
Source:
MLKem.cs

Exports the private seed.

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

Returns

Byte[]

The private seed.

Exceptions

The current instance cannot export a seed.

-or-

An error occurred while exporting the key.

The object has already been disposed.

Applies to

ExportPrivateSeed(Span<Byte>)

Source:
MLKem.cs
Source:
MLKem.cs

Exports the private seed into the provided buffer.

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

Parameters

destination
Span<Byte>

The buffer to receive the private seed.

Exceptions

destination is the incorrect length to receive the private seed.

The current instance cannot export a seed.

-or-

An error occurred while exporting the key.

The object has already been disposed.

Applies to