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

IBufferedCipher

public interface IBufferedCipher
string AlgorithmName { get; }

The name of the algorithm this cipher implements.

byte[] DoFinal()

byte[] DoFinal(byte[] input)

byte[] DoFinal(byte[] input, int inOff, int length)

int DoFinal(byte[] output, int outOff)

int DoFinal(byte[] input, byte[] output, int outOff)

int DoFinal(byte[] input, int inOff, int length, byte[] output, int outOff)

int GetOutputSize(int inputLen)

int GetUpdateOutputSize(int inputLen)

void Init(bool forEncryption, ICipherParameters parameters)

Initialise the cipher.

byte[] ProcessByte(byte input)

int ProcessByte(byte input, byte[] output, int outOff)

byte[] ProcessBytes(byte[] input)

byte[] ProcessBytes(byte[] input, int inOff, int length)

int ProcessBytes(byte[] input, byte[] output, int outOff)

int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff)

void Reset()

Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).