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

IKemDecapsulator

public interface IKemDecapsulator
using System; namespace Org.BouncyCastle.Crypto { public interface IKemDecapsulator { int EncapsulationLength { get; } int SecretLength { get; } void Init(ICipherParameters parameters); void Decapsulate(byte[] encBuf, int encOff, int encLen, byte[] secBuf, int secOff, int secLen); void Decapsulate(ReadOnlySpan<byte> encapsulation, Span<byte> secret); } }