IBufferedCipher
using System;
namespace Org.BouncyCastle.Crypto
{
public interface IBufferedCipher
{
string AlgorithmName { get; }
void Init(bool forEncryption, ICipherParameters parameters);
int GetBlockSize();
int GetOutputSize(int inputLen);
int GetUpdateOutputSize(int inputLen);
byte[] ProcessByte(byte input);
int ProcessByte(byte input, byte[] output, int outOff);
int ProcessByte(byte input, Span<byte> output);
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);
int ProcessBytes(ReadOnlySpan<byte> input, Span<byte> output);
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 DoFinal(Span<byte> output);
int DoFinal(ReadOnlySpan<byte> input, Span<byte> output);
void Reset();
}
}