Lines Matching refs:v
59 #define X(w, u, v) \ argument
60 w[0] = u[0] ^ v[0]; \
61 w[1] = u[1] ^ v[1]; \
62 w[2] = u[2] ^ v[2]; \
63 w[3] = u[3] ^ v[3]; \
64 w[4] = u[4] ^ v[4]; \
65 w[5] = u[5] ^ v[5]; \
66 w[6] = u[6] ^ v[6]; \
67 w[7] = u[7] ^ v[7];
154 #define SHIFT16(h, v, u) \ argument
155 v[0] = h[0] ^ (u[1] << 16) ^ (u[0] >> 16); \
156 v[1] = h[1] ^ (u[2] << 16) ^ (u[1] >> 16); \
157 v[2] = h[2] ^ (u[3] << 16) ^ (u[2] >> 16); \
158 v[3] = h[3] ^ (u[4] << 16) ^ (u[3] >> 16); \
159 v[4] = h[4] ^ (u[5] << 16) ^ (u[4] >> 16); \
160 v[5] = h[5] ^ (u[6] << 16) ^ (u[5] >> 16); \
161 v[6] = h[6] ^ (u[7] << 16) ^ (u[6] >> 16); \
162 v[7] = h[7] ^ (u[0] & 0xffff0000) ^ (u[0] << 16) ^ (u[7] >> 16) ^ \
165 #define SHIFT61(h, v) \ argument
166 h[0] = (v[0] & 0xffff0000) ^ (v[0] << 16) ^ (v[0] >> 16) ^ (v[1] >> 16) ^ \
167 (v[1] & 0xffff0000) ^ (v[2] << 16) ^ (v[3] >> 16) ^ (v[4] << 16) ^ \
168 (v[5] >> 16) ^ v[5] ^ (v[6] >> 16) ^ (v[7] << 16) ^ (v[7] >> 16) ^ \
169 (v[7] & 0xffff); \
170 h[1] = (v[0] << 16) ^ (v[0] >> 16) ^ (v[0] & 0xffff0000) ^ (v[1] & 0xffff) ^ \
171 v[2] ^ (v[2] >> 16) ^ (v[3] << 16) ^ (v[4] >> 16) ^ (v[5] << 16) ^ \
172 (v[6] << 16) ^ v[6] ^ (v[7] & 0xffff0000) ^ (v[7] >> 16); \
173 h[2] = (v[0] & 0xffff) ^ (v[0] << 16) ^ (v[1] << 16) ^ (v[1] >> 16) ^ \
174 (v[1] & 0xffff0000) ^ (v[2] << 16) ^ (v[3] >> 16) ^ v[3] ^ (v[4] << 16) ^ \
175 (v[5] >> 16) ^ v[6] ^ (v[6] >> 16) ^ (v[7] & 0xffff) ^ (v[7] << 16) ^ \
176 (v[7] >> 16); \
177 h[3] = (v[0] << 16) ^ (v[0] >> 16) ^ (v[0] & 0xffff0000) ^ \
178 (v[1] & 0xffff0000) ^ (v[1] >> 16) ^ (v[2] << 16) ^ (v[2] >> 16) ^ v[2] ^ \
179 (v[3] << 16) ^ (v[4] >> 16) ^ v[4] ^ (v[5] << 16) ^ (v[6] << 16) ^ \
180 (v[7] & 0xffff) ^ (v[7] >> 16); \
181 h[4] = (v[0] >> 16) ^ (v[1] << 16) ^ v[1] ^ (v[2] >> 16) ^ v[2] ^ \
182 (v[3] << 16) ^ (v[3] >> 16) ^ v[3] ^ (v[4] << 16) ^ (v[5] >> 16) ^ \
183 v[5] ^ (v[6] << 16) ^ (v[6] >> 16) ^ (v[7] << 16); \
184 h[5] = (v[0] << 16) ^ (v[0] & 0xffff0000) ^ (v[1] << 16) ^ (v[1] >> 16) ^ \
185 (v[1] & 0xffff0000) ^ (v[2] << 16) ^ v[2] ^ (v[3] >> 16) ^ v[3] ^ \
186 (v[4] << 16) ^ (v[4] >> 16) ^ v[4] ^ (v[5] << 16) ^ (v[6] << 16) ^ \
187 (v[6] >> 16) ^ v[6] ^ (v[7] << 16) ^ (v[7] >> 16) ^ (v[7] & 0xffff0000); \
188 h[6] = v[0] ^ v[2] ^ (v[2] >> 16) ^ v[3] ^ (v[3] << 16) ^ v[4] ^ \
189 (v[4] >> 16) ^ (v[5] << 16) ^ (v[5] >> 16) ^ v[5] ^ (v[6] << 16) ^ \
190 (v[6] >> 16) ^ v[6] ^ (v[7] << 16) ^ v[7]; \
191 h[7] = v[0] ^ (v[0] >> 16) ^ (v[1] << 16) ^ (v[1] >> 16) ^ (v[2] << 16) ^ \
192 (v[3] >> 16) ^ v[3] ^ (v[4] << 16) ^ v[4] ^ (v[5] >> 16) ^ v[5] ^ \
193 (v[6] << 16) ^ (v[6] >> 16) ^ (v[7] << 16) ^ v[7];
196 X(w, u, v); \
205 AA(v, l, r); \
211 uint32_t l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data; in Gost() local
214 memcpy(v, data, sizeof(v)); in Gost()
220 SHIFT16(h, v, u); in Gost()
221 SHIFT61(h, v); in Gost()