Edit

Share via


MLKem.EncapsulateCore(Span<Byte>, Span<Byte>) Method

Definition

When overridden in a derived class, creates an encapsulation ciphertext and shared secret, writing them into the provided buffers.

protected:
 abstract void EncapsulateCore(Span<System::Byte> ciphertext, Span<System::Byte> sharedSecret);
protected abstract void EncapsulateCore(Span<byte> ciphertext, Span<byte> sharedSecret);
abstract member EncapsulateCore : Span<byte> * Span<byte> -> unit
Protected MustOverride Sub EncapsulateCore (ciphertext As Span(Of Byte), sharedSecret As Span(Of Byte))

Parameters

ciphertext
Span<Byte>

The buffer to receive the ciphertext.

sharedSecret
Span<Byte>

The buffer to receive the shared secret.

Exceptions

An error occurred during encapsulation.

Applies to