Lines Matching refs:v
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];
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) ^ \
163 #define SHIFT61(h, v) \ argument
164 h[0] = (v[0] & 0xffff0000) ^ (v[0] << 16) ^ (v[0] >> 16) ^ (v[1] >> 16) ^ \
165 (v[1] & 0xffff0000) ^ (v[2] << 16) ^ (v[3] >> 16) ^ (v[4] << 16) ^ \
166 (v[5] >> 16) ^ v[5] ^ (v[6] >> 16) ^ (v[7] << 16) ^ (v[7] >> 16) ^ \
167 (v[7] & 0xffff); \
168 h[1] = (v[0] << 16) ^ (v[0] >> 16) ^ (v[0] & 0xffff0000) ^ (v[1] & 0xffff) ^ \
169 v[2] ^ (v[2] >> 16) ^ (v[3] << 16) ^ (v[4] >> 16) ^ (v[5] << 16) ^ \
170 (v[6] << 16) ^ v[6] ^ (v[7] & 0xffff0000) ^ (v[7] >> 16); \
171 h[2] = (v[0] & 0xffff) ^ (v[0] << 16) ^ (v[1] << 16) ^ (v[1] >> 16) ^ \
172 (v[1] & 0xffff0000) ^ (v[2] << 16) ^ (v[3] >> 16) ^ v[3] ^ (v[4] << 16) ^ \
173 (v[5] >> 16) ^ v[6] ^ (v[6] >> 16) ^ (v[7] & 0xffff) ^ (v[7] << 16) ^ \
174 (v[7] >> 16); \
175 h[3] = (v[0] << 16) ^ (v[0] >> 16) ^ (v[0] & 0xffff0000) ^ \
176 (v[1] & 0xffff0000) ^ (v[1] >> 16) ^ (v[2] << 16) ^ (v[2] >> 16) ^ v[2] ^ \
177 (v[3] << 16) ^ (v[4] >> 16) ^ v[4] ^ (v[5] << 16) ^ (v[6] << 16) ^ \
178 (v[7] & 0xffff) ^ (v[7] >> 16); \
179 h[4] = (v[0] >> 16) ^ (v[1] << 16) ^ v[1] ^ (v[2] >> 16) ^ v[2] ^ \
180 (v[3] << 16) ^ (v[3] >> 16) ^ v[3] ^ (v[4] << 16) ^ (v[5] >> 16) ^ \
181 v[5] ^ (v[6] << 16) ^ (v[6] >> 16) ^ (v[7] << 16); \
182 h[5] = (v[0] << 16) ^ (v[0] & 0xffff0000) ^ (v[1] << 16) ^ (v[1] >> 16) ^ \
183 (v[1] & 0xffff0000) ^ (v[2] << 16) ^ v[2] ^ (v[3] >> 16) ^ v[3] ^ \
184 (v[4] << 16) ^ (v[4] >> 16) ^ v[4] ^ (v[5] << 16) ^ (v[6] << 16) ^ \
185 (v[6] >> 16) ^ v[6] ^ (v[7] << 16) ^ (v[7] >> 16) ^ (v[7] & 0xffff0000); \
186 h[6] = v[0] ^ v[2] ^ (v[2] >> 16) ^ v[3] ^ (v[3] << 16) ^ v[4] ^ \
187 (v[4] >> 16) ^ (v[5] << 16) ^ (v[5] >> 16) ^ v[5] ^ (v[6] << 16) ^ \
188 (v[6] >> 16) ^ v[6] ^ (v[7] << 16) ^ v[7]; \
189 h[7] = v[0] ^ (v[0] >> 16) ^ (v[1] << 16) ^ (v[1] >> 16) ^ (v[2] << 16) ^ \
190 (v[3] >> 16) ^ v[3] ^ (v[4] << 16) ^ v[4] ^ (v[5] >> 16) ^ v[5] ^ \
191 (v[6] << 16) ^ (v[6] >> 16) ^ (v[7] << 16) ^ v[7];
194 X(w, u, v); \
203 AA(v, l, r); \
209 uint32_t l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data; in Gost() local
212 memcpy(v, data, sizeof(v)); in Gost()
218 SHIFT16(h, v, u); in Gost()
219 SHIFT61(h, v); in Gost()