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

Org.BouncyCastle.Crypto.Modes.CfbBlockCipher

Implements a Cipher-FeedBack (CFB) mode on top of a simple block cipher.
public string AlgorithmName { get; }

The algorithm name and mode.

public bool IsPartialBlockOkay { get; }

Indicates whether partial blocks are okay for this mode.

The underlying block cipher that we are wrapping.

public CfbBlockCipher(IBlockCipher cipher, int bitBlockSize)

Basic constructor.

public int GetBlockSize()

Return the block size we are operating at.

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)

Process a block of data.

public void Reset()

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