语言

MLKem.EncapsulateCore(Span<Byte>, Span<Byte>) 方法

定义

在派生类中重写时,创建封装密码文本和共享机密,并将其写入提供的缓冲区。

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))

参数

ciphertext
Span<Byte>

要接收密码文本的缓冲区。

sharedSecret
Span<Byte>

用于接收共享机密的缓冲区。

例外

封装期间发生错误。

适用于