Edit

Share via


MLKem.Encapsulate Method

Definition

Overloads

Encapsulate(Byte[], Byte[])

Source:
MLKem.cs
public:
 void Encapsulate([Runtime::InteropServices::Out] cli::array <System::Byte> ^ % ciphertext, [Runtime::InteropServices::Out] cli::array <System::Byte> ^ % sharedSecret);
public void Encapsulate(out byte[] ciphertext, out byte[] sharedSecret);
member this.Encapsulate : Byte[] * Byte[] -> unit
Public Sub Encapsulate (ByRef ciphertext As Byte(), ByRef sharedSecret As Byte())

Parameters

ciphertext
Byte[]
sharedSecret
Byte[]

Applies to

Encapsulate(Span<Byte>, Span<Byte>)

Source:
MLKem.cs
public:
 void Encapsulate(Span<System::Byte> ciphertext, Span<System::Byte> sharedSecret);
public void Encapsulate(Span<byte> ciphertext, Span<byte> sharedSecret);
member this.Encapsulate : Span<byte> * Span<byte> -> unit
Public Sub Encapsulate (ciphertext As Span(Of Byte), sharedSecret As Span(Of Byte))

Parameters

ciphertext
Span<Byte>
sharedSecret
Span<Byte>

Applies to