/* ecrypt-frogbit-prng.h */ #if !defined(MTGFSR_F) /* * Make up for missing definitions if this file is compiled * outside of the ECRYPT NoE Frogbit submission. */ #define FROGBIT10 (10) /* Some MTGFSR parameters */ #define MTGFSR_F (2) #define MTGFSR_siz (4) typedef unsigned long u32; typedef unsigned char u8; typedef struct { int ind; u32 bits[MTGFSR_siz]; u32 table[1<ind++; \ temp=pt->bits[(pt->ind-MTGFSR_N)&(MTGFSR_siz-1)]; \ pt->bits[pt->ind&(MTGFSR_siz-1)] \ =(t) \ = pt->bits[(pt->ind-MTGFSR_N+MTGFSR_M)&(MTGFSR_siz-1)] \ ^(temp>>MTGFSR_F) \ ^pt->table[temp&((1<