Searched refs:rotlFixed (Results 1 - 23 of 23) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/
H A D3way.cpp38 b2 = rotlFixed(a2, 1U); \
39 b0 = rotlFixed(a0, 22U); \
40 a0 = rotlFixed(b0 ^ (a1|(~b2)), 1U); \
41 a2 = rotlFixed(b2 ^ (b0|(~a1)), 22U);\
50 c = rotlFixed(c, 16U) ^ rotlFixed(c, 8U); \
H A Drc6.cpp35 a = sTable[h % sTable.size()] = rotlFixed((sTable[h % sTable.size()] + a + b), 3);
54 t = rotlFixed(b*(2*b+1), 5);
55 u = rotlFixed(d*(2*d+1), 5);
83 u = rotlFixed(d*(2*d+1), 5);
84 t = rotlFixed(b*(2*b+1), 5);
H A Dmars.cpp55 T[i] = T[i] ^ rotlFixed(T[(i+8)%15] ^ T[(i+13)%15], 3) ^ (4*i+j);
60 T[i] = rotlFixed(T[i] + Sbox[T[(i+14)%15]%512], 9);
88 r = rotlFixed(a, 8); \
91 r = rotlFixed(a, 16); \
92 a = rotlFixed(a, 24); \
98 a = rotlFixed(a, 13); \
101 r = rotlFixed(r, 5); \
104 r = rotlFixed(r, 5); \
114 r = rotlFixed(r, 5); \
117 r = rotlFixed(
[all...]
H A Drc2.cpp64 R0 = rotlFixed(R0, 1);
67 R1 = rotlFixed(R1, 2);
70 R2 = rotlFixed(R2, 3);
73 R3 = rotlFixed(R3, 5);
H A Ddes.cpp80 right = rotlFixed(right, 4U);
92 right = rotlFixed(right^work, 9U);
94 left = rotlFixed(left^work, 1U);
108 left = rotlFixed(left^work, 6U);
111 left = rotlFixed(left^work, 18U);
114 left = rotlFixed(left^work, 20U);
H A Dtwofish.cpp64 word32 b = rotlFixed(h(i+1, key+1, len), 8);
66 m_k[i+1] = rotlFixed(a+2*b, 9);
90 (d) = rotlFixed(d, 1) ^ y
101 (c) = rotlFixed(c, 1); \
H A Dgf2_32.cpp31 b = rotlFixed(b, 1U);
H A Dmd4.cpp47 #define function(a,b,c,d,k,s) a=rotlFixed(a+F(b,c,d)+in[k],s);
66 #define function(a,b,c,d,k,s) a=rotlFixed(a+G(b,c,d)+in[k]+0x5a827999,s);
85 #define function(a,b,c,d,k,s) a=rotlFixed(a+H(b,c,d)+in[k]+0x6ed9eba1,s);
H A Dsafer.cpp73 ka[BLOCKSIZE] ^= ka[j] = rotlFixed(userkey_1[j], 5U);
81 ka[j] = rotlFixed(ka[j], 6U);
82 kb[j] = rotlFixed(kb[j], 6U);
H A Dserpentp.h7 a = rotlFixed(a, 13); \
8 c = rotlFixed(c, 3); \
9 d = rotlFixed(d ^ c ^ (a << 3), 7); \
10 b = rotlFixed(b ^ a ^ c, 1); \
11 a = rotlFixed(a ^ b ^ d, 5); \
12 c = rotlFixed(c ^ d ^ (b << 7), 22);}
H A Dcamellia.cpp24 zr= rotlFixed(s1[GETBYTE(zr, 3)], 1) | \
26 (s1[rotlFixed(CRYPTOPP_GET_BYTE_AS_BYTE(zr, 1),1)] << 16) | \
29 (rotlFixed(s1[GETBYTE(zl, 2)], 1) << 16) | \
31 s1[rotlFixed(CRYPTOPP_GET_BYTE_AS_BYTE(zl, 0), 1)]; \
33 zr = zl ^ rotlFixed(zr, 8); \
35 rh ^= rotlFixed(zr, 16); \
37 rl ^= rotlFixed(zl, 8); \
193 ll ^= rotlFixed(lh & klh, 1); \
196 rl ^= rotlFixed(rh & krh, 1);
H A Drc5.cpp34 a = sTable[h % sTable.size()] = rotlFixed((sTable[h % sTable.size()] + a + b), 3);
H A Dmisc.h432 template <class T> inline T rotlFixed(T x, unsigned int y) function
470 template<> inline word32 rotlFixed<word32>(word32 x, unsigned int y) function
509 template<> inline word64 rotlFixed<word64>(word64 x, unsigned int y)
548 template<> inline word16 rotlFixed<word16>(word16 x, unsigned int y)
582 template<> inline byte rotlFixed<byte>(byte x, unsigned int y)
620 template<> inline word32 rotlFixed<word32>(word32 x, unsigned int y)
679 return rotlFixed(value, 8U);
696 return (rotrFixed(value, 8U) & 0xff00ff00) | (rotlFixed(value, 8U) & 0x00ff00ff);
700 return rotlFixed(value, 16U);
718 return rotlFixed(valu
[all...]
H A Dserpent.cpp21 k[i] = k0[i] = t = rotlFixed(k0[i] ^ k0[(i+3)%8] ^ k0[(i+5)%8] ^ t ^ 0x9e3779b9 ^ i, 11);
23 k[i] = t = rotlFixed(k[i-8] ^ k[i-5] ^ k[i-3] ^ t ^ 0x9e3779b9 ^ i, 11);
H A Dsha.cpp22 #define blk1(i) (W[i&15] = rotlFixed(W[(i+13)&15]^W[(i+8)&15]^W[(i+2)&15]^W[i&15],1))
39 #define R0(v,w,x,y,z,i) z+=f1(w,x,y)+blk0(i)+0x5A827999+rotlFixed(v,5);w=rotlFixed(w,30);
40 #define R1(v,w,x,y,z,i) z+=f1(w,x,y)+blk1(i)+0x5A827999+rotlFixed(v,5);w=rotlFixed(w,30);
41 #define R2(v,w,x,y,z,i) z+=f2(w,x,y)+blk1(i)+0x6ED9EBA1+rotlFixed(v,5);w=rotlFixed(w,30);
42 #define R3(v,w,x,y,z,i) z+=f3(w,x,y)+blk1(i)+0x8F1BBCDC+rotlFixed(v,5);w=rotlFixed(w,30);
43 #define R4(v,w,x,y,z,i) z+=f4(w,x,y)+blk1(i)+0xCA62C1D6+rotlFixed(
[all...]
H A Dsquare.cpp48 roundkeys[i][0] = roundkeys[i-1][0] ^ rotlFixed(roundkeys[i-1][3], 8U) ^ offset[i-1];
H A Dmd5.cpp34 w = rotlFixed(w + f(x, y, z) + data, s) + x
H A Dsosemanuk.cpp81 m_state[10] = rotlFixed(m_state[10] * 0x54655307, 7);
623 #define MUL_A(x) (x = rotlFixed(x, 8), x ^ s_sosemanukMulTables[byte(x)])
638 r2(x0) = rotlFixed(r2(x0) * 0x54655307, 7);\
H A Dsalsa.cpp503 b = b ^ rotlFixed(a + d, 7); \
504 c = c ^ rotlFixed(b + a, 9); \
505 d = d ^ rotlFixed(c + b, 13); \
506 a = a ^ rotlFixed(d + c, 18);
H A Dseed.cpp78 key23 = rotlFixed<word64>(key23, 8);
H A Dttmac.cpp102 a = rotlFixed((word32)a, s) + e;\
103 c = rotlFixed((word32)c, 10U)
H A Dpanama.cpp337 #define GP(i) c(5*i%17) = rotlFixed(a(i) ^ (a((i+1)%17) | ~a((i+2)%17)), ((5*i%17)*((5*i%17)+1)/2)%32)
H A Dripemd.cpp34 a = rotlFixed((word32)a, s) + e;\
35 c = rotlFixed((word32)c, 10U)
462 a = rotlFixed((word32)a, s);

Completed in 149 milliseconds