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

IStreamCipher

public interface IStreamCipher
The interface stream ciphers conform to.
using System; namespace Org.BouncyCastle.Crypto { public interface IStreamCipher { string AlgorithmName { get; } void Init(bool forEncryption, ICipherParameters parameters); byte ReturnByte(byte input); void ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff); void ProcessBytes(ReadOnlySpan<byte> input, Span<byte> output); void Reset(); } }