Class BufferedIesCipher
- Namespace
- Org.BouncyCastle.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
public class BufferedIesCipher : BufferedCipherBase, IBufferedCipher
- Inheritance
-
BufferedIesCipher
- Implements
- Inherited Members
Constructors
BufferedIesCipher(IesEngine)
public BufferedIesCipher(IesEngine engine)
Parameters
engineIesEngine
Properties
AlgorithmName
The name of the algorithm this cipher implements.
public override string AlgorithmName { get; }
Property Value
Methods
DoFinal()
public override byte[] DoFinal()
Returns
- byte[]
DoFinal(byte[], int, int)
public override byte[] DoFinal(byte[] input, int inOff, int length)
Parameters
Returns
- byte[]
DoFinal(Span<byte>)
public override int DoFinal(Span<byte> output)
Parameters
Returns
GetBlockSize()
public override int GetBlockSize()
Returns
GetOutputSize(int)
public override int GetOutputSize(int inputLen)
Parameters
inputLenint
Returns
GetUpdateOutputSize(int)
public override int GetUpdateOutputSize(int inputLen)
Parameters
inputLenint
Returns
Init(bool, ICipherParameters)
Initialise the cipher.
public override 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)
public override byte[] ProcessByte(byte input)
Parameters
inputbyte
Returns
- byte[]
ProcessByte(byte, byte[], int)
public override int ProcessByte(byte input, byte[] output, int outOff)
Parameters
Returns
ProcessByte(byte, Span<byte>)
public override int ProcessByte(byte input, Span<byte> output)
Parameters
Returns
ProcessBytes(byte[], int, int)
public override byte[] ProcessBytes(byte[] input, int inOff, int length)
Parameters
Returns
- byte[]
ProcessBytes(ReadOnlySpan<byte>, Span<byte>)
public override 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).
public override void Reset()