Class OcbBlockCipher
- Namespace
- Enterprises.Org.BouncyCastle.Crypto.Modes
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
public class OcbBlockCipher : IAeadBlockCipher
- Inheritance
-
OcbBlockCipher
- Implements
-
- Inherited Members
-
Constructors
OcbBlockCipher(IBlockCipher, IBlockCipher)
public OcbBlockCipher(IBlockCipher hashCipher, IBlockCipher mainCipher)
Parameters
hashCipher IBlockCipher
mainCipher IBlockCipher
Properties
AlgorithmName
public virtual string AlgorithmName { get; }
Property Value
- string
Methods
Clear(byte[])
protected virtual void Clear(byte[] bs)
Parameters
bs byte[]
DoFinal(byte[], int)
public virtual int DoFinal(byte[] output, int outOff)
Parameters
output byte[]
outOff int
Returns
- int
GetBlockSize()
public virtual int GetBlockSize()
Returns
- int
GetLSub(int)
protected virtual byte[] GetLSub(int n)
Parameters
n int
Returns
- byte[]
GetMac()
public virtual byte[] GetMac()
Returns
- byte[]
GetOutputSize(int)
public virtual int GetOutputSize(int len)
Parameters
len int
Returns
- int
GetUnderlyingCipher()
public virtual IBlockCipher GetUnderlyingCipher()
Returns
- IBlockCipher
GetUpdateOutputSize(int)
public virtual int GetUpdateOutputSize(int len)
Parameters
len int
Returns
- int
Init(bool, ICipherParameters)
public virtual void Init(bool forEncryption, ICipherParameters parameters)
Parameters
forEncryption bool
parameters ICipherParameters
OCB_double(byte[])
protected static byte[] OCB_double(byte[] block)
Parameters
block byte[]
Returns
- byte[]
OCB_extend(byte[], int)
protected static void OCB_extend(byte[] block, int pos)
Parameters
block byte[]
pos int
OCB_ntz(long)
protected static int OCB_ntz(long x)
Parameters
x long
Returns
- int
ProcessAadByte(byte)
public virtual void ProcessAadByte(byte input)
Parameters
input byte
ProcessAadBytes(byte[], int, int)
public virtual void ProcessAadBytes(byte[] input, int off, int len)
Parameters
input byte[]
off int
len int
ProcessByte(byte, byte[], int)
public virtual int ProcessByte(byte input, byte[] output, int outOff)
Parameters
input byte
output byte[]
outOff int
Returns
- int
ProcessBytes(byte[], int, int, byte[], int)
public virtual int ProcessBytes(byte[] input, int inOff, int len, byte[] output, int outOff)
Parameters
input byte[]
inOff int
len int
output byte[]
outOff int
Returns
- int
ProcessHashBlock()
protected virtual void ProcessHashBlock()
ProcessMainBlock(byte[], int)
protected virtual void ProcessMainBlock(byte[] output, int outOff)
Parameters
output byte[]
outOff int
ProcessNonce(byte[])
protected virtual int ProcessNonce(byte[] N)
Parameters
N byte[]
Returns
- int
Reset()
public virtual void Reset()
Reset(bool)
protected virtual void Reset(bool clearMac)
Parameters
clearMac bool
ShiftLeft(byte[], byte[])
protected static int ShiftLeft(byte[] block, byte[] output)
Parameters
block byte[]
output byte[]
Returns
- int
UpdateHASH(byte[])
protected virtual void UpdateHASH(byte[] LSub)
Parameters
LSub byte[]
Xor(byte[], byte[])
protected static void Xor(byte[] block, byte[] val)
Parameters
block byte[]
val byte[]