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

Org.BouncyCastle.Crypto.Modes.CbcBlockCipher

Implements Cipher-Block-Chaining (CBC) mode on top of a simple cipher.
public string AlgorithmName { get; }

Return the algorithm name and mode.

public bool IsPartialBlockOkay { get; }

Indicates whether this cipher can handle partial blocks.

Return the underlying block cipher that we are wrapping.

Basic constructor.

public int GetBlockSize()

Return the block size of the underlying cipher.

public void Init(bool forEncryption, ICipherParameters parameters)

Initialise the cipher and, possibly, the initialisation vector (IV).

public int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)

public void Reset()

Reset the chaining vector back to the IV and reset the underlying cipher.