Lines Matching refs:x2
51 #define S0_1(x0, x1, x2, x3, x4) \ argument
54 vpxor x2, x3, x4; \
59 vpxor x0, x2, x2;
60 #define S0_2(x0, x1, x2, x3, x4) \ argument
63 vpxor x2, x0, x0; \
64 vpand x1, x2, x2; \
65 vpxor x2, x3, x3; \
67 vpxor x4, x2, x2; \
68 vpxor x2, x1, x1;
70 #define S1_1(x0, x1, x2, x3, x4) \ argument
76 vpxor x2, x3, x3; \
79 #define S1_2(x0, x1, x2, x3, x4) \ argument
82 vpxor x2, x4, x4; \
83 vpand x0, x2, x2; \
84 vpxor x1, x2, x2; \
87 vpxor x2, x0, x0; \
90 #define S2_1(x0, x1, x2, x3, x4) \ argument
93 vpand x2, x0, tp; \
96 vpxor x1, x2, x2; \
99 #define S2_2(x0, x1, x2, x3, x4) \ argument
100 vpxor x2, tp, tp; \
101 vpand x3, x2, x2; \
106 vpxor x2, tp, x0; \
107 vpor x2, x1, x1;
109 #define S3_1(x0, x1, x2, x3, x4) \ argument
113 vpxor x2, x0, x0; \
114 vpxor tp, x2, x2; \
116 vpxor x3, x2, x2; \
119 #define S3_2(x0, x1, x2, x3, x4) \ argument
123 vpxor x2, x3, x3; \
125 vpand x1, x2, x2; \
128 vpxor x2, x3, x3;
130 #define S4_1(x0, x1, x2, x3, x4) \ argument
133 vpxor x2, tp, tp; \
134 vpor x3, x2, x2; \
137 vpor x0, x2, x2; \
138 vpxor x1, x2, x2;
139 #define S4_2(x0, x1, x2, x3, x4) \ argument
142 vpand x2, x4, x4; \
143 vpxor tp, x2, x2; \
149 #define S5_1(x0, x1, x2, x3, x4) \ argument
151 vpxor tp, x2, x2; \
154 vpxor x2, x0, x0; \
158 #define S5_2(x0, x1, x2, x3, x4) \ argument
161 vpxor x2, x3, x3; \
163 vpand x4, x2, x2; \
164 vpxor x2, x1, x1; \
165 vpand x0, x2, x2; \
166 vpxor x2, x3, x3;
168 #define S6_1(x0, x1, x2, x3, x4) \ argument
170 vpxor x2, x1, tp; \
171 vpxor x0, x2, x2; \
176 vpxor x2, tp, x1;
177 #define S6_2(x0, x1, x2, x3, x4) \ argument
180 vpand x0, x2, x2; \
182 vpxor x3, x2, x2; \
185 vpxor x2, x1, x1;
187 #define S7_1(x0, x1, x2, x3, x4) \ argument
190 vpand x2, tp, x1; \
193 vpxor x2, tp, x4; \
194 vpxor x3, x2, x2; \
197 #define S7_2(x0, x1, x2, x3, x4) \ argument
198 vpand x0, x2, x2; \
203 vpxor x4, x2, x2; \
208 #define SI0_1(x0, x1, x2, x3, x4) \ argument
213 vpxor tp, x2, x2; \
216 vpxor x2, x0, x0;
217 #define SI0_2(x0, x1, x2, x3, x4) \ argument
218 vpand x3, x2, x2; \
220 vpxor x3, x2, x2; \
224 vpxor x2, x0, x0; \
227 #define SI1_1(x0, x1, x2, x3, x4) \ argument
229 vpxor x2, x0, tp; \
230 vpxor RNOT, x2, x2; \
234 vpxor x2, x1, x1; \
235 vpand x4, x2, x2;
236 #define SI1_2(x0, x1, x2, x3, x4) \ argument
240 vpxor tp, x2, x2; \
242 vpxor x4, x2, x2; \
246 #define SI2_1(x0, x1, x2, x3, x4) \ argument
247 vpxor x1, x2, x2; \
249 vpor x2, tp, tp; \
250 vpxor x3, x2, x2; \
253 vpor x2, x1, x1; \
254 vpxor x0, x2, x2;
255 #define SI2_2(x0, x1, x2, x3, x4) \ argument
258 vpxor x3, x2, x2; \
259 vpxor x2, x4, x4; \
260 vpand x1, x2, x2; \
261 vpxor x3, x2, x2; \
265 #define SI3_1(x0, x1, x2, x3, x4) \ argument
266 vpxor x1, x2, x2; \
267 vpand x2, x1, tp; \
273 vpxor x2, tp, x1;
274 #define SI3_2(x0, x1, x2, x3, x4) \ argument
276 vpxor x2, x0, x0; \
277 vpxor x3, x2, x2; \
280 vpand x2, x0, x0; \
285 #define SI4_1(x0, x1, x2, x3, x4) \ argument
286 vpxor x3, x2, x2; \
288 vpxor x2, tp, tp; \
289 vpor x3, x2, x2; \
292 vpxor x2, tp, x0; \
293 vpand x4, x2, x2;
294 #define SI4_2(x0, x1, x2, x3, x4) \ argument
295 vpxor x0, x2, x2; \
298 vpand x2, x3, x3; \
305 #define SI5_1(x0, x1, x2, x3, x4) \ argument
306 vpor x2, x1, tp; \
307 vpxor x1, x2, x2; \
310 vpxor x3, x2, x2; \
313 vpxor x2, x3, x3; \
314 vpor x0, x2, x2;
315 #define SI5_2(x0, x1, x2, x3, x4) \ argument
317 vpxor x4, x2, x2; \
321 vpand x2, x0, x0; \
322 vpxor x3, x2, x2; \
323 vpxor x2, x0, x0; \
324 vpxor x4, x2, x2; \
327 #define SI6_1(x0, x1, x2, x3, x4) \ argument
328 vpxor x2, x0, x0; \
330 vpxor x3, x2, x2; \
331 vpxor x2, tp, tp; \
333 vpor x0, x2, x2; \
334 vpxor x3, x2, x2; \
336 #define SI6_2(x0, x1, x2, x3, x4) \ argument
339 vpand x2, x1, x1; \
342 vpxor x2, x4, x4; \
344 vpxor x0, x2, x2;
346 #define SI7_1(x0, x1, x2, x3, x4) \ argument
348 vpxor x2, x0, x0; \
349 vpor x3, x2, x2; \
354 vpand x2, x0, x0; \
356 #define SI7_2(x0, x1, x2, x3, x4) \ argument
357 vpand x2, x1, x1; \
358 vpxor x2, tp, x3; \
360 vpand x3, x2, x2; \
365 vpxor x2, x4, x4;
370 #define K2(x0, x1, x2, x3, x4, i) \ argument
377 vpxor RK2, x2 ## 1, x2 ## 1; \
381 vpxor RK2, x2 ## 2, x2 ## 2; \
384 #define LK2(x0, x1, x2, x3, x4, i) \ argument
389 vpslld $3, x2 ## 1, x4 ## 1; \
390 vpsrld $(32 - 3), x2 ## 1, x2 ## 1; \
391 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
392 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
397 vpslld $3, x2 ## 2, x4 ## 2; \
398 vpsrld $(32 - 3), x2 ## 2, x2 ## 2; \
399 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
400 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
405 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
412 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
421 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
422 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
430 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
431 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
438 vpslld $22, x2 ## 1, x4 ## 1; \
439 vpsrld $(32 - 22), x2 ## 1, x2 ## 1; \
440 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
442 vpxor RK2, x2 ## 1, x2 ## 1; \
448 vpslld $22, x2 ## 2, x4 ## 2; \
449 vpsrld $(32 - 22), x2 ## 2, x2 ## 2; \
450 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
452 vpxor RK2, x2 ## 2, x2 ## 2;
454 #define KL2(x0, x1, x2, x3, x4, i) \ argument
456 vpxor RK2, x2 ## 1, x2 ## 1; \
462 vpsrld $22, x2 ## 1, x4 ## 1; \
463 vpslld $(32 - 22), x2 ## 1, x2 ## 1; \
464 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
465 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
467 vpxor RK2, x2 ## 2, x2 ## 2; \
473 vpsrld $22, x2 ## 2, x4 ## 2; \
474 vpslld $(32 - 22), x2 ## 2, x2 ## 2; \
475 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
476 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
480 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
487 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
506 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
507 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
508 vpsrld $3, x2 ## 1, x4 ## 1; \
509 vpslld $(32 - 3), x2 ## 1, x2 ## 1; \
510 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
514 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
515 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
516 vpsrld $3, x2 ## 2, x4 ## 2; \
517 vpslld $(32 - 3), x2 ## 2, x2 ## 2; \
518 vpor x4 ## 2, x2 ## 2, x2 ## 2;
520 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
521 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
522 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
523 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
524 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
526 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
528 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
530 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
532 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
534 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
536 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
539 vpunpckldq x3, x2, t1; \
540 vpunpckhdq x3, x2, x3; \
544 vpunpcklqdq x3, t2, x2; \
547 #define read_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
548 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
550 #define write_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
551 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)