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

IStreamCipher

public interface IStreamCipher
The interface stream ciphers conform to.
string AlgorithmName { get; }

The name of the algorithm this cipher implements.

void Init(bool forEncryption, ICipherParameters parameters)

Initialise the cipher.

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

Process a block of bytes from input, putting the result into output.

void Reset()

Reset the cipher to the same state as it was after the last init (if there was one).

byte ReturnByte(byte input)

encrypt/decrypt a single byte returning the result.