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