// blowfish.cpp // // The Blowfish encryption/decryption algorithm. Algorithm by Bruce Schneier. // See http://www.schneier.com/ for details. // #include #include #include "blowfish.h" #define F(x) (((SB[0][x.byte.zero] + SB[1][x.byte.one]) ^ SB[2][x.byte.two]) + SB[3][x.byte.three]) void Blowfish::Gen_Subkeys(char *Passwd, unsigned long len) { unsigned int i,j; Word Work,null0,null1; if (len > 0) { j = 0; for (i=0;i 0) Gen_Subkeys(Passwd, len); for (i=0;i