Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/ray/src/lib/crypto/blowfishcipher.cc File Reference

#include "blowfishcipher.h"

Include dependency graph for blowfishcipher.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define ROUND(a, b, c_Pptr)
#define INPACK(a, in)
#define OUTPACK(a, out)

Variables

uint32 bf_pbox [16+2]
uint32 bf_sbox [256 *4]
const size_t blowfish_par_kl [7] = {8,16,24,32,40,48,56}


Define Documentation

#define INPACK a,
in   ) 
 

Value:

a =uint32(*(in++)) << 24; \
    a|=uint32(*(in++)) << 16; \
    a|=uint32(*(in++)) <<  8; \
    a|=uint32(*(in++))      ;

Definition at line 410 of file blowfishcipher.cc.

Referenced by TwoFishCipher::DecryptBlock(), BlowFishCipher::DecryptBlock(), TwoFishCipher::EncryptBlock(), and BlowFishCipher::EncryptBlock().

#define OUTPACK a,
out   ) 
 

Value:

*(out++) = a >> 24; \
    *(out++) = a >> 16; \
    *(out++) = a >>  8; \
    *(out++) = a      ;

Definition at line 416 of file blowfishcipher.cc.

Referenced by TwoFishCipher::DecryptBlock(), BlowFishCipher::DecryptBlock(), TwoFishCipher::EncryptBlock(), and BlowFishCipher::EncryptBlock().

#define ROUND a,
b,
c_Pptr   ) 
 

Value:

b^=*c_Pptr; \
    a^=((( c_S0[  b >> 24          ] + \
           c_S1[((b >> 16) & 0xff)]) ^ \
           c_S2[((b >>  8) & 0xff)]) + \
           c_S3[( b        & 0xff)])

Definition at line 300 of file blowfishcipher.cc.

Referenced by BlowFishCipher::_EncryptRounds(), BlowFishCipher::DecryptBlock(), and BlowFishCipher::EncryptBlock().


Variable Documentation

uint32 bf_pbox[16+2] [static]
 

Initial value:

 {
    0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344,
    0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89,
    0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c,
    0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917,
    0x9216d5d9, 0x8979fb1b
}

Definition at line 26 of file blowfishcipher.cc.

Referenced by BlowFishCipher::SetKey().

uint32 bf_sbox[256*4] [static]
 

Definition at line 35 of file blowfishcipher.cc.

Referenced by BlowFishCipher::SetKey().

const size_t blowfish_par_kl[7] = {8,16,24,32,40,48,56} [static]
 

Definition at line 511 of file blowfishcipher.cc.


Generated on Sat Feb 19 22:33:50 2005 for Ray by doxygen 1.3.5