<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0" />

IKemEncapsulator

public interface IKemEncapsulator
namespace Org.BouncyCastle.Crypto { public interface IKemEncapsulator { int EncapsulationLength { get; } int SecretLength { get; } void Init(ICipherParameters parameters); void Encapsulate(byte[] encBuf, int encOff, int encLen, byte[] secBuf, int secOff, int secLen); } }