MLKem.ExportDecapsulationKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ExportDecapsulationKey() |
Exports the decapsulation key. |
| ExportDecapsulationKey(Span<Byte>) |
Exports the decapsulation key into the provided buffer. |
ExportDecapsulationKey()
- Source:
- MLKem.cs
- Source:
- MLKem.cs
Exports the decapsulation key.
public:
cli::array <System::Byte> ^ ExportDecapsulationKey();
public byte[] ExportDecapsulationKey();
member this.ExportDecapsulationKey : unit -> byte[]
Public Function ExportDecapsulationKey () As Byte()
Returns
The decapsulation key.
Exceptions
The current instance cannot export a decapsulation key.
-or-
An error occurred while importing the key.
The object has already been disposed.
Applies to
ExportDecapsulationKey(Span<Byte>)
- Source:
- MLKem.cs
- Source:
- MLKem.cs
Exports the decapsulation key into the provided buffer.
public:
void ExportDecapsulationKey(Span<System::Byte> destination);
public void ExportDecapsulationKey(Span<byte> destination);
member this.ExportDecapsulationKey : Span<byte> -> unit
Public Sub ExportDecapsulationKey (destination As Span(Of Byte))
Parameters
Exceptions
destination is the incorrect length to receive the decapsulation key.
The current instance cannot export a decapsulation key.
-or-
An error occurred while importing the key.
The object has already been disposed.