Interface IBufferedCipher
- Namespace
- Org.BouncyCastle.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
public interface IBufferedCipher
Remarks
Block cipher engines are expected to conform to this interface.
Properties
AlgorithmName
The name of the algorithm this cipher implements.
string AlgorithmName { get; }
Property Value
Methods
DoFinal()
byte[] DoFinal()
Returns
- byte[]
DoFinal(byte[])
byte[] DoFinal(byte[] input)
Parameters
inputbyte[]
Returns
- byte[]
DoFinal(byte[], byte[], int)
int DoFinal(byte[] input, byte[] output, int outOff)
Parameters
Returns
DoFinal(byte[], int)
int DoFinal(byte[] output, int outOff)
Parameters
Returns
DoFinal(byte[], int, int)
byte[] DoFinal(byte[] input, int inOff, int length)
Parameters
Returns
- byte[]
DoFinal(byte[], int, int, byte[], int)
int DoFinal(byte[] input, int inOff, int length, byte[] output, int outOff)
Parameters
Returns
DoFinal(ReadOnlySpan<byte>, Span<byte>)
int DoFinal(ReadOnlySpan<byte> input, Span<byte> output)
Parameters
inputReadOnlySpan<byte>outputSpan<byte>
Returns
DoFinal(Span<byte>)
int DoFinal(Span<byte> output)
Parameters
Returns
GetBlockSize()
int GetBlockSize()
Returns
GetOutputSize(int)
int GetOutputSize(int inputLen)
Parameters
inputLenint
Returns
GetUpdateOutputSize(int)
int GetUpdateOutputSize(int inputLen)
Parameters
inputLenint
Returns
Init(bool, ICipherParameters)
Initialise the cipher.
void Init(bool forEncryption, ICipherParameters parameters)
Parameters
forEncryptionboolIf true the cipher is initialised for encryption, if false for decryption.
parametersICipherParametersThe key and other data required by the cipher.
ProcessByte(byte)
byte[] ProcessByte(byte input)
Parameters
inputbyte
Returns
- byte[]
ProcessByte(byte, byte[], int)
int ProcessByte(byte input, byte[] output, int outOff)
Parameters
Returns
ProcessByte(byte, Span<byte>)
int ProcessByte(byte input, Span<byte> output)
Parameters
Returns
ProcessBytes(byte[])
byte[] ProcessBytes(byte[] input)
Parameters
inputbyte[]
Returns
- byte[]
ProcessBytes(byte[], byte[], int)
int ProcessBytes(byte[] input, byte[] output, int outOff)
Parameters
Returns
ProcessBytes(byte[], int, int)
byte[] ProcessBytes(byte[] input, int inOff, int length)
Parameters
Returns
- byte[]
ProcessBytes(byte[], int, int, byte[], int)
int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff)
Parameters
Returns
ProcessBytes(ReadOnlySpan<byte>, Span<byte>)
int ProcessBytes(ReadOnlySpan<byte> input, Span<byte> output)
Parameters
inputReadOnlySpan<byte>outputSpan<byte>
Returns
Reset()
Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).
void Reset()