8ANONYMOUS_NAMESPACE_BEGIN
10const unsigned int TT[8]= {
11 0x726a8f3b, 0xe69a3b5c, 0xd3c71fe5, 0xab3c73d2,
12 0x4d3a8eb3, 0x0396d6e8, 0x3d4c2f7a, 0x9ee27cf3
15ANONYMOUS_NAMESPACE_END
17NAMESPACE_BEGIN(CryptoPP)
19#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
20void WAKE_TestInstantiations()
30 return (w>>8) ^ t[w & 0xff];
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);
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))\
Interface for retrieving values given their names.
SymmetricCipher implementation.
WAKE stream cipher operation.
void CipherSetKey(const NameValuePairs ¶ms, const byte *key, size_t length)
Key the cipher.
void OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount)
Operates the keystream.
unsigned char byte
8-bit unsigned datatype
unsigned int word32
32-bit unsigned datatype
Classes for automatic resource management.
#define CRYPTOPP_KEYSTREAM_OUTPUT_SWITCH(x, y)
Helper macro to implement OperateKeystream.
KeystreamOperation
Keystream operation flags.
word32 WordType
Word type for the cipher.
Access a block of memory.
Classes for WAKE stream cipher.