Lines Matching refs:u
57 #define X(w, u, v) \ argument
58 w[0] = u[0] ^ v[0]; \
59 w[1] = u[1] ^ v[1]; \
60 w[2] = u[2] ^ v[2]; \
61 w[3] = u[3] ^ v[3]; \
62 w[4] = u[4] ^ v[4]; \
63 w[5] = u[5] ^ v[5]; \
64 w[6] = u[6] ^ v[6]; \
65 w[7] = u[7] ^ v[7];
125 #define SHIFT12(u, m, s) \ argument
126 u[0] = m[0] ^ s[6]; \
127 u[1] = m[1] ^ s[7]; \
128 u[2] = m[2] ^ (s[0] << 16) ^ (s[0] >> 16) ^ (s[0] & 0xffff) ^ \
131 u[3] = m[3] ^ (s[0] & 0xffff) ^ (s[0] << 16) ^ (s[1] & 0xffff) ^ \
135 u[4] = m[4] ^ \
140 u[5] = m[5] ^ (s[0] << 16) ^ (s[0] >> 16) ^ (s[0] & 0xffff0000) ^ \
144 u[6] = m[6] ^ s[0] ^ (s[1] >> 16) ^ (s[2] << 16) ^ s[3] ^ (s[3] >> 16) ^ \
147 u[7] = m[7] ^ (s[0] & 0xffff0000) ^ (s[0] << 16) ^ (s[1] & 0xffff) ^ \
152 #define SHIFT16(h, v, u) \ argument
153 v[0] = h[0] ^ (u[1] << 16) ^ (u[0] >> 16); \
154 v[1] = h[1] ^ (u[2] << 16) ^ (u[1] >> 16); \
155 v[2] = h[2] ^ (u[3] << 16) ^ (u[2] >> 16); \
156 v[3] = h[3] ^ (u[4] << 16) ^ (u[3] >> 16); \
157 v[4] = h[4] ^ (u[5] << 16) ^ (u[4] >> 16); \
158 v[5] = h[5] ^ (u[6] << 16) ^ (u[5] >> 16); \
159 v[6] = h[6] ^ (u[7] << 16) ^ (u[6] >> 16); \
160 v[7] = h[7] ^ (u[0] & 0xffff0000) ^ (u[0] << 16) ^ (u[7] >> 16) ^ \
161 (u[1] & 0xffff0000) ^ (u[1] << 16) ^ (u[6] << 16) ^ (u[7] & 0xffff0000);
194 X(w, u, v); \
199 A(u, l, r); \
201 C(u); \
209 uint32_t l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data; in Gost() local
211 memcpy(u, context->state, sizeof(u)); in Gost()
217 SHIFT12(u, m, s); in Gost()
218 SHIFT16(h, v, u); in Gost()