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

Org.BouncyCastle.Crypto.Engines.AesEngine

public sealed class AesEngine : IBlockCipher
An implementation of the AES (Rijndael), from FIPS-197.
public string AlgorithmName { get; }

The name of the algorithm this engine implements.

public AesEngine()

Default constructor - 128 bit block size.

public int GetBlockSize()

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

public void Init(bool forEncryption, ICipherParameters parameters)

Initialise an AES cipher.

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

Process a single block of data.