8 ANONYMOUS_NAMESPACE_BEGIN
10 const unsigned int TT[8]= {
11 0x726a8f3b, 0xe69a3b5c, 0xd3c71fe5, 0xab3c73d2,
12 0x4d3a8eb3, 0x0396d6e8, 0x3d4c2f7a, 0x9ee27cf3
15 ANONYMOUS_NAMESPACE_END
19 #if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING) 20 void WAKE_TestInstantiations()
27 inline word32 WAKE_Base::M(word32 x, word32 y)
30 return (w>>8) ^ t[w & 0xff];
33 void WAKE_Base::GenKey(word32 k0, word32 k1, word32 k2, word32 k3)
42 for (p=4 ; p<256 ; p++)
45 t[p]= (x>>3) ^ TT[x&7] ;
48 for (p=0 ; p<23 ; p++)
50 x=t[33] ; z=t[59] | 0x01000001 ;
52 for (p=0 ; p<256 ; p++) {
54 t[p]=(t[p] & 0x00ffffff) ^ x ; }
58 for (p=0 ; p<256 ; p++) {
59 t[p]=t[y=byte(t[p^y]^y)] ;
66 CRYPTOPP_UNUSED(params); CRYPTOPP_UNUSED(key); CRYPTOPP_UNUSED(length);
67 word32 k0, k1, k2, k3;
69 GenKey(k0, k1, k2, k3);
76 #define WAKE_OUTPUT(x)\ 77 while (iterationCount--)\ 79 CRYPTOPP_KEYSTREAM_OUTPUT_WORD(x, B::ToEnum(), 0, r6);\ 85 if (!(x & INPUT_NULL))\ 89 typedef word32 WordType;
Classes for automatic resource management.
Access a block of memory.
#define CRYPTOPP_KEYSTREAM_OUTPUT_SWITCH(x, y)
Helper macro to implement OperateKeystream.
Interface for one direction (encryption or decryption) of a stream cipher or cipher mode...
WAKE stream cipher operation.
Classes for WAKE stream cipher.
KeystreamOperation
Keystream operation flags.
Crypto++ library namespace.
SymmetricCipher implementation.
Interface for retrieving values given their names.