Tests for tweetcipher-ref.cc .
More...
|
#define | LOOP(n) for(i=0;i<n;++i) |
|
#define | W(v, n) ((uint64_t*)v)[n] |
|
#define | R(v, n) (((v)<<(64-n))|((v)>>n)) |
|
#define | AXR(a, b, c, r) x[a]+=x[b];x[c]=R(x[c]^x[a],r); |
|
#define | G(a, b, c, d) {AXR(a,b,d,32) AXR(c,d,b,25) AXR(a,b,d,16) AXR(c,d,b,11)} |
|
#define | ROUNDS |
|
#define | TWEET_PTLEN 64 |
|
#define | TWEET_CONST 0x7477697468617369ULL |
|
Value:{for(r=6;r--;){LOOP(4) G(i,i+4,i+8,i+12) \
LOOP(4) G(i,(i+1)%4+4,(i+2)%4+8,(i+3)%4+12)}}