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

Org.BouncyCastle.Crypto.Operators.BufferedCipherWrapper

namespace Org.BouncyCastle.Crypto.Operators { public class BufferedCipherWrapper : ICipher { public Stream Stream { get; } public BufferedCipherWrapper(IBufferedCipher bufferedCipher, Stream source); public int GetMaxOutputSize(int inputLen); public int GetUpdateOutputSize(int inputLen); } }