"Fossies" - the Fresh Open Source Software Archive

Member "libmcrypt-2.5.8/modules/algorithms/twofish.h" (9 Mar 2002, 360 Bytes) of package /linux/privat/old/libmcrypt-2.5.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "twofish.h" see the Fossies "Dox" file reference documentation.

    1 #define Q_TABLES
    2 #define M_TABLE
    3 #define MK_TABLE
    4 #define ONE_STEP
    5 
    6 typedef struct twofish_instance {
    7     word32  k_len;
    8     word32  l_key[40];
    9     word32  s_key[4];
   10 #ifdef  Q_TABLES
   11     word32 qt_gen;
   12     byte q_tab[2][256];
   13 #endif
   14 #ifdef  M_TABLE
   15     word32 mt_gen;
   16     word32 m_tab[4][256];
   17 #endif
   18 #ifdef  ONE_STEP
   19     word32 mk_tab[4][256];
   20 #else
   21     byte sb[4][256];
   22 #endif
   23 } TWI;
   24