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

Org.BouncyCastle.Crypto.Modes.OfbBlockCipher

Implements an Output-FeedBack (OFB) 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 OfbBlockCipher(IBlockCipher cipher, int blockSize)

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 feedback vector back to the IV and reset the underlying cipher.