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

IWrapper

public interface IWrapper
namespace Org.BouncyCastle.Crypto { public interface IWrapper { string AlgorithmName { get; } void Init(bool forWrapping, ICipherParameters parameters); byte[] Wrap(byte[] input, int inOff, int length); byte[] Unwrap(byte[] input, int inOff, int length); } }