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

ICipher

public interface ICipher
Base interface for a ciphers that do not require data to be block aligned.

Note: In cases where the underlying algorithm is block based, these ciphers may add or remove padding as needed.

using System.IO; namespace Org.BouncyCastle.Crypto { public interface ICipher { Stream Stream { get; } int GetMaxOutputSize(int inputLen); int GetUpdateOutputSize(int inputLen); } }