77 #if defined(COMPILE_CRYPT_SUPPORT) || defined(Q_MOC_RUN)
83 SBlock(
unsigned int l = 0,
unsigned int r = 0) : m_uil(
l), m_uir(
r) {}
85 SBlock(
const SBlock & roBlock) : m_uil(roBlock.m_uil), m_uir(roBlock.m_uir) {}
86 SBlock & operator^=(SBlock & b)
92 unsigned int m_uil, m_uir;
106 BlowFish(
unsigned char * ucKey,
unsigned int n,
const SBlock & roChain = SBlock(0UL, 0UL));
109 void ResetChain() { m_oChain = m_oChain0; }
112 void Encrypt(
unsigned char * buf,
unsigned int n,
int iMode = ECB);
113 void Decrypt(
unsigned char * buf,
unsigned int n,
int iMode = ECB);
116 void Encrypt(
const unsigned char * in,
unsigned char * out,
unsigned int n,
int iMode = ECB);
117 void Decrypt(
const unsigned char * in,
unsigned char * out,
unsigned int n,
int iMode = ECB);
121 unsigned int F(
unsigned int ui);
122 void Encrypt(SBlock &);
123 void Decrypt(SBlock &);
129 unsigned int m_auiP[18];
130 unsigned int m_auiS[4][256];
131 static const unsigned int scm_auiInitP[18];
132 static const unsigned int scm_auiInitS[4][256];
136 inline unsigned char Byte(
unsigned int ui)
138 return (
unsigned char)(ui & 0xff);
142 inline unsigned int BlowFish::F(
unsigned int ui)
144 return ((m_auiS[0][Byte(ui >> 24)] + m_auiS[1][Byte(ui >> 16)]) ^ m_auiS[2][Byte(ui >> 8)]) + m_auiS[3][Byte(ui)];
147 #endif //COMPILE_CRYPT_SUPPORT
#define l
Definition: detector.cpp:76
#define n
Definition: detector.cpp:78
#define r
Definition: detector.cpp:82
This file contains compile time settings.