C# Class ManyMonkeys.Cryptography.TwofishBase

Summary description for TwofishBase.
Show file Open project: hdneo/mxo-hd

Protected Properties

Property Type Description
IV uint[]
Key uint[]
cipherMode CipherMode
inputBlockSize int
outputBlockSize int
sboxKeys uint[]
subKeys uint[]

Public Methods

Method Description
TwofishBase ( ) : System

Protected Methods

Method Description
b0 ( uint x ) : byte
b1 ( uint x ) : byte
b2 ( uint x ) : byte
b3 ( uint x ) : byte
blockDecrypt ( uint &x ) : void
blockEncrypt ( uint &x ) : void
reKey ( int keyLen, uint &key32 ) : bool

Private Methods

Method Description
LFSR1 ( int x ) : int
LFSR2 ( int x ) : int
M00 ( int x ) : int
M01 ( int x ) : int
M02 ( int x ) : int
M03 ( int x ) : int
M10 ( int x ) : int
M11 ( int x ) : int
M12 ( int x ) : int
M13 ( int x ) : int
M20 ( int x ) : int
M21 ( int x ) : int
M22 ( int x ) : int
M23 ( int x ) : int
M30 ( int x ) : int
M31 ( int x ) : int
M32 ( int x ) : int
M33 ( int x ) : int
Mul_1 ( int x ) : int
Mul_X ( int x ) : int
Mul_Y ( int x ) : int
Mx_1 ( int x ) : int
Mx_X ( int x ) : int
Mx_Y ( int x ) : int
ROL ( uint x, int n ) : uint
ROR ( uint x, int n ) : uint
RS_MDS_Encode ( uint k0, uint k1 ) : uint
RS_rem ( uint &x ) : void
f32 ( uint x, uint &k32, int keyLen ) : uint

Method Details

TwofishBase() public method

public TwofishBase ( ) : System
return System

b0() protected static method

protected static b0 ( uint x ) : byte
x uint
return byte

b1() protected static method

protected static b1 ( uint x ) : byte
x uint
return byte

b2() protected static method

protected static b2 ( uint x ) : byte
x uint
return byte

b3() protected static method

protected static b3 ( uint x ) : byte
x uint
return byte

blockDecrypt() protected method

protected blockDecrypt ( uint &x ) : void
x uint
return void

blockEncrypt() protected method

protected blockEncrypt ( uint &x ) : void
x uint
return void

reKey() protected method

protected reKey ( int keyLen, uint &key32 ) : bool
keyLen int
key32 uint
return bool

Property Details

IV protected property

protected uint[] IV
return uint[]

Key protected property

protected uint[] Key
return uint[]

cipherMode protected property

protected CipherMode cipherMode
return CipherMode

inputBlockSize protected property

protected int inputBlockSize
return int

outputBlockSize protected property

protected int outputBlockSize
return int

sboxKeys protected property

protected uint[] sboxKeys
return uint[]

subKeys protected property

protected uint[] subKeys
return uint[]