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

Org.BouncyCastle.Crypto.IBlockCipher

public interface IBlockCipher
Base interface for a symmetric key block cipher.
string AlgorithmName { get; }

The name of the algorithm this cipher implements.

Return the block size for this cipher (in bytes).

void Init(bool forEncryption, ICipherParameters parameters)

Initialise the cipher.

int ProcessBlock(byte[] inBuf, int inOff, byte[] outBuf, int outOff)

Process a block.

int ProcessBlock(ReadOnlySpan<byte> input, Span<byte> output)

Process a block.