1 /* 2 * mktmptbl.h 3 * 4 * (C) by Peter Conrad <conrad@unix-ag.uni-kl.de> 5 * 6 * $Id: mktmptbl.h,v 1.8 2002/11/02 15:12:06 lucifer Exp $ 7 * 8 * $Log: mktmptbl.h,v $ 9 * Revision 1.8 2002/11/02 15:12:06 lucifer 10 * Integrated RElf's changes (with small mods) from fix2.zip 11 * 12 * Revision 1.8 2002/10/25 17:41:24 RElf 13 * Joint with mulTab routines 14 * 15 * Revision 1.7 2002/01/31 16:24:22 lucifer 16 * Reorganized invTempTable 17 * 18 * Revision 1.6 1998/05/08 16:55:49 lucifer 19 * Added creation of inverted tempTable 20 * 21 * Revision 1.5 1997/09/18 18:19:46 lucifer 22 * Added _MKTMPTBL_H & pkctypes.h 23 * 24 * Revision 1.4 1996/08/13 13:19:48 conrad 25 * Changed name to support OS with short filenames... :-/ 26 * 27 * Revision 1.3 1996/06/23 12:34:20 lucifer 28 * #defined ushort for DJGPP 29 * 30 */ 31 32 #ifndef _MKTMPTBL_H 33 #define _MKTMPTBL_H 34 35 #include "pkctypes.h" 36 #include "pkcrack.h" 37 38 #define INVTEMP_NUM 5 39 40 extern ushort tempTable[256][64]; 41 extern void preCompTemp( void ); 42 extern byte invTempTable[256][64][INVTEMP_NUM]; 43 extern ushort invEntries[256][64]; 44 45 #define MULT(x) ((mulTab[((x)>>24)&0xff]<<24) + \ 46 (mulTab[((x)>>16)&0xff]<<16) + \ 47 (mulTab[((x)>> 8)&0xff]<< 8) + \ 48 (mulTab[((x) )&0xff] )) 49 50 extern uword mulTab[256]; 51 extern byte mTab2[256][2]; 52 extern int mTab2Counter[256]; 53 extern void initMulTab(); 54 55 #endif /* _MKTMPTBL_H */ 56