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

IBlockCipher

public interface IBlockCipher
using System; namespace Org.BouncyCastle.Crypto { public interface IBlockCipher { string AlgorithmName { get; } void Init(bool forEncryption, ICipherParameters parameters); int GetBlockSize(); int ProcessBlock(byte[] inBuf, int inOff, byte[] outBuf, int outOff); int ProcessBlock(ReadOnlySpan<byte> input, Span<byte> output); } }