6 NAMESPACE_BEGIN(CryptoPP)
8 void WAKE_TestInstantiations()
14 inline word32 WAKE_Base::M(word32 x, word32 y)
17 return (w>>8) ^ t[w & 0xff];
20 void WAKE_Base::GenKey(word32 k0, word32 k1, word32 k2, word32 k3)
25 CRYPTOPP_COMPILE_ASSERT(
sizeof(x) == 4);
39 for (p=4 ; p<256 ; p++)
42 t[p]= (x>>3) ^ tt[x&7] ;
45 for (p=0 ; p<23 ; p++)
47 x=t[33] ; z=t[59] | 0x01000001 ;
49 for (p=0 ; p<256 ; p++) {
51 t[p]=(t[p] & 0x00ffffff) ^ x ; }
55 for (p=0 ; p<256 ; p++) {
56 t[p]=t[y=byte(t[p^y]^y)] ;
63 word32 k0, k1, k2, k3;
65 GenKey(k0, k1, k2, k3);
72 #define WAKE_OUTPUT(x)\
73 while (iterationCount--)\
75 CRYPTOPP_KEYSTREAM_OUTPUT_WORD(x, B::ToEnum(), 0, r6);\
81 if (!(x & INPUT_NULL))\
85 typedef word32 WordType;
86 CRYPTOPP_KEYSTREAM_OUTPUT_SWITCH(WAKE_OUTPUT, 0);
interface for one direction (encryption or decryption) of a stream cipher or cipher mode ...
interface for retrieving values given their names