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

IBlockCipherPadding

public interface IBlockCipherPadding
Block cipher padders are expected to conform to this interface.
using Org.BouncyCastle.Security; namespace Org.BouncyCastle.Crypto.Paddings { public interface IBlockCipherPadding { string PaddingName { get; } void Init(SecureRandom random); int AddPadding(byte[] input, int inOff); int PadCount(byte[] input); } }