C# Class Org.BouncyCastle.Crypto.Modes.OcbBlockCipher

Inheritance: IAeadBlockCipher
ファイルを表示 Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
DoFinal ( byte output, int outOff ) : int
GetBlockSize ( ) : int
GetMac ( ) : byte[]
GetOutputSize ( int len ) : int
GetUnderlyingCipher ( ) : IBlockCipher
GetUpdateOutputSize ( int len ) : int
Init ( bool forEncryption, ICipherParameters parameters ) : void
OcbBlockCipher ( IBlockCipher hashCipher, IBlockCipher mainCipher ) : System
ProcessAadByte ( byte input ) : void
ProcessAadBytes ( byte input, int off, int len ) : void
ProcessByte ( byte input, byte output, int outOff ) : int
ProcessBytes ( byte input, int inOff, int len, byte output, int outOff ) : int
Reset ( ) : void

Protected Methods

Method Description
Clear ( byte bs ) : void
GetLSub ( int n ) : byte[]
OCB_double ( byte block ) : byte[]
OCB_extend ( byte block, int pos ) : void
OCB_ntz ( long x ) : int
ProcessHashBlock ( ) : void
ProcessMainBlock ( byte output, int outOff ) : void
Reset ( bool clearMac ) : void
ShiftLeft ( byte block, byte output ) : int
UpdateHASH ( byte LSub ) : void
Xor ( byte block, byte val ) : void

Method Details

Clear() protected method

protected Clear ( byte bs ) : void
bs byte
return void

DoFinal() public method

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
return int

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

GetLSub() protected method

protected GetLSub ( int n ) : byte[]
n int
return byte[]

GetMac() public method

public GetMac ( ) : byte[]
return byte[]

GetOutputSize() public method

public GetOutputSize ( int len ) : int
len int
return int

GetUnderlyingCipher() public method

public GetUnderlyingCipher ( ) : IBlockCipher
return IBlockCipher

GetUpdateOutputSize() public method

public GetUpdateOutputSize ( int len ) : int
len int
return int

Init() public method

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
return void

OCB_double() protected static method

protected static OCB_double ( byte block ) : byte[]
block byte
return byte[]

OCB_extend() protected static method

protected static OCB_extend ( byte block, int pos ) : void
block byte
pos int
return void

OCB_ntz() protected static method

protected static OCB_ntz ( long x ) : int
x long
return int

OcbBlockCipher() public method

public OcbBlockCipher ( IBlockCipher hashCipher, IBlockCipher mainCipher ) : System
hashCipher IBlockCipher
mainCipher IBlockCipher
return System

ProcessAadByte() public method

public ProcessAadByte ( byte input ) : void
input byte
return void

ProcessAadBytes() public method

public ProcessAadBytes ( byte input, int off, int len ) : void
input byte
off int
len int
return void

ProcessByte() public method

public ProcessByte ( byte input, byte output, int outOff ) : int
input byte
output byte
outOff int
return int

ProcessBytes() public method

public ProcessBytes ( byte input, int inOff, int len, byte output, int outOff ) : int
input byte
inOff int
len int
output byte
outOff int
return int

ProcessHashBlock() protected method

protected ProcessHashBlock ( ) : void
return void

ProcessMainBlock() protected method

protected ProcessMainBlock ( byte output, int outOff ) : void
output byte
outOff int
return void

Reset() public method

public Reset ( ) : void
return void

Reset() protected method

protected Reset ( bool clearMac ) : void
clearMac bool
return void

ShiftLeft() protected static method

protected static ShiftLeft ( byte block, byte output ) : int
block byte
output byte
return int

UpdateHASH() protected method

protected UpdateHASH ( byte LSub ) : void
LSub byte
return void

Xor() protected static method

protected static Xor ( byte block, byte val ) : void
block byte
val byte
return void