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

TbcPadding

A padder that adds Trailing-Bit-Compliment padding to a block. This padding pads the block out compliment of the last bit of the plain text.
public string PaddingName { get; }

Return the name of the algorithm the cipher implements.

public TbcPadding()

public virtual int AddPadding(byte[] input, int inOff)

add the pad bytes to the passed in block, returning the number of bytes added.

public virtual void Init(SecureRandom random)

Initialise the padder.

public virtual int PadCount(byte[] input)