Class SerpentEngineBase
- Namespace
- Org.BouncyCastle.Crypto.Engines
- Assembly
- BouncyCastle.Cryptography.dll
public abstract class SerpentEngineBase : IBlockCipher
- Inheritance
-
SerpentEngineBase
- Implements
- Derived
- Inherited Members
Fields
BlockSize
protected static readonly int BlockSize
Field Value
X0
protected int X0
Field Value
X1
protected int X1
Field Value
X2
protected int X2
Field Value
X3
protected int X3
Field Value
encrypting
protected bool encrypting
Field Value
wKey
protected int[] wKey
Field Value
- int[]
Properties
AlgorithmName
The name of the algorithm this cipher implements.
public virtual string AlgorithmName { get; }
Property Value
Methods
GetBlockSize()
public virtual int GetBlockSize()
Returns
- int
The block size for this cipher, in bytes.
Ib0(int, int, int, int)
protected void Ib0(int a, int b, int c, int d)
Parameters
Ib1(int, int, int, int)
protected void Ib1(int a, int b, int c, int d)
Parameters
Ib2(int, int, int, int)
protected void Ib2(int a, int b, int c, int d)
Parameters
Ib3(int, int, int, int)
protected void Ib3(int a, int b, int c, int d)
Parameters
Ib4(int, int, int, int)
protected void Ib4(int a, int b, int c, int d)
Parameters
Ib5(int, int, int, int)
protected void Ib5(int a, int b, int c, int d)
Parameters
Ib6(int, int, int, int)
protected void Ib6(int a, int b, int c, int d)
Parameters
Ib7(int, int, int, int)
protected void Ib7(int a, int b, int c, int d)
Parameters
Init(bool, ICipherParameters)
public virtual void Init(bool encrypting, ICipherParameters parameters)
Parameters
encryptingboolparametersICipherParameters
InverseLT()
protected void InverseLT()
LT()
protected void LT()
ProcessBlock(byte[], int, byte[], int)
public int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
Parameters
Returns
ProcessBlock(ReadOnlySpan<byte>, Span<byte>)
Process a block.
public int ProcessBlock(ReadOnlySpan<byte> input, Span<byte> output)
Parameters
inputReadOnlySpan<byte>The input block as a span.
outputSpan<byte>The output span.
Returns
- int
The number of bytes processed and produced.
Exceptions
- DataLengthException
If input block is wrong size, or output span too small.
Sb0(int, int, int, int)
protected void Sb0(int a, int b, int c, int d)
Parameters
Sb1(int, int, int, int)
protected void Sb1(int a, int b, int c, int d)
Parameters
Sb2(int, int, int, int)
protected void Sb2(int a, int b, int c, int d)
Parameters
Sb3(int, int, int, int)
protected void Sb3(int a, int b, int c, int d)
Parameters
Sb4(int, int, int, int)
protected void Sb4(int a, int b, int c, int d)
Parameters
Sb5(int, int, int, int)
protected void Sb5(int a, int b, int c, int d)
Parameters
Sb6(int, int, int, int)
protected void Sb6(int a, int b, int c, int d)
Parameters
Sb7(int, int, int, int)
protected void Sb7(int a, int b, int c, int d)