Lines Matching refs:x2
60 #define S0_1(x0, x1, x2, x3, x4) \ argument
63 vpxor x2, x3, x4; \
68 vpxor x0, x2, x2;
69 #define S0_2(x0, x1, x2, x3, x4) \ argument
72 vpxor x2, x0, x0; \
73 vpand x1, x2, x2; \
74 vpxor x2, x3, x3; \
76 vpxor x4, x2, x2; \
77 vpxor x2, x1, x1;
79 #define S1_1(x0, x1, x2, x3, x4) \ argument
85 vpxor x2, x3, x3; \
88 #define S1_2(x0, x1, x2, x3, x4) \ argument
91 vpxor x2, x4, x4; \
92 vpand x0, x2, x2; \
93 vpxor x1, x2, x2; \
96 vpxor x2, x0, x0; \
99 #define S2_1(x0, x1, x2, x3, x4) \ argument
102 vpand x2, x0, tp; \
105 vpxor x1, x2, x2; \
108 #define S2_2(x0, x1, x2, x3, x4) \ argument
109 vpxor x2, tp, tp; \
110 vpand x3, x2, x2; \
115 vpxor x2, tp, x0; \
116 vpor x2, x1, x1;
118 #define S3_1(x0, x1, x2, x3, x4) \ argument
122 vpxor x2, x0, x0; \
123 vpxor tp, x2, x2; \
125 vpxor x3, x2, x2; \
128 #define S3_2(x0, x1, x2, x3, x4) \ argument
132 vpxor x2, x3, x3; \
134 vpand x1, x2, x2; \
137 vpxor x2, x3, x3;
139 #define S4_1(x0, x1, x2, x3, x4) \ argument
142 vpxor x2, tp, tp; \
143 vpor x3, x2, x2; \
146 vpor x0, x2, x2; \
147 vpxor x1, x2, x2;
148 #define S4_2(x0, x1, x2, x3, x4) \ argument
151 vpand x2, x4, x4; \
152 vpxor tp, x2, x2; \
158 #define S5_1(x0, x1, x2, x3, x4) \ argument
160 vpxor tp, x2, x2; \
163 vpxor x2, x0, x0; \
167 #define S5_2(x0, x1, x2, x3, x4) \ argument
170 vpxor x2, x3, x3; \
172 vpand x4, x2, x2; \
173 vpxor x2, x1, x1; \
174 vpand x0, x2, x2; \
175 vpxor x2, x3, x3;
177 #define S6_1(x0, x1, x2, x3, x4) \ argument
179 vpxor x2, x1, tp; \
180 vpxor x0, x2, x2; \
185 vpxor x2, tp, x1;
186 #define S6_2(x0, x1, x2, x3, x4) \ argument
189 vpand x0, x2, x2; \
191 vpxor x3, x2, x2; \
194 vpxor x2, x1, x1;
196 #define S7_1(x0, x1, x2, x3, x4) \ argument
199 vpand x2, tp, x1; \
202 vpxor x2, tp, x4; \
203 vpxor x3, x2, x2; \
206 #define S7_2(x0, x1, x2, x3, x4) \ argument
207 vpand x0, x2, x2; \
212 vpxor x4, x2, x2; \
217 #define SI0_1(x0, x1, x2, x3, x4) \ argument
222 vpxor tp, x2, x2; \
225 vpxor x2, x0, x0;
226 #define SI0_2(x0, x1, x2, x3, x4) \ argument
227 vpand x3, x2, x2; \
229 vpxor x3, x2, x2; \
233 vpxor x2, x0, x0; \
236 #define SI1_1(x0, x1, x2, x3, x4) \ argument
238 vpxor x2, x0, tp; \
239 vpxor RNOT, x2, x2; \
243 vpxor x2, x1, x1; \
244 vpand x4, x2, x2;
245 #define SI1_2(x0, x1, x2, x3, x4) \ argument
249 vpxor tp, x2, x2; \
251 vpxor x4, x2, x2; \
255 #define SI2_1(x0, x1, x2, x3, x4) \ argument
256 vpxor x1, x2, x2; \
258 vpor x2, tp, tp; \
259 vpxor x3, x2, x2; \
262 vpor x2, x1, x1; \
263 vpxor x0, x2, x2;
264 #define SI2_2(x0, x1, x2, x3, x4) \ argument
267 vpxor x3, x2, x2; \
268 vpxor x2, x4, x4; \
269 vpand x1, x2, x2; \
270 vpxor x3, x2, x2; \
274 #define SI3_1(x0, x1, x2, x3, x4) \ argument
275 vpxor x1, x2, x2; \
276 vpand x2, x1, tp; \
282 vpxor x2, tp, x1;
283 #define SI3_2(x0, x1, x2, x3, x4) \ argument
285 vpxor x2, x0, x0; \
286 vpxor x3, x2, x2; \
289 vpand x2, x0, x0; \
294 #define SI4_1(x0, x1, x2, x3, x4) \ argument
295 vpxor x3, x2, x2; \
297 vpxor x2, tp, tp; \
298 vpor x3, x2, x2; \
301 vpxor x2, tp, x0; \
302 vpand x4, x2, x2;
303 #define SI4_2(x0, x1, x2, x3, x4) \ argument
304 vpxor x0, x2, x2; \
307 vpand x2, x3, x3; \
314 #define SI5_1(x0, x1, x2, x3, x4) \ argument
315 vpor x2, x1, tp; \
316 vpxor x1, x2, x2; \
319 vpxor x3, x2, x2; \
322 vpxor x2, x3, x3; \
323 vpor x0, x2, x2;
324 #define SI5_2(x0, x1, x2, x3, x4) \ argument
326 vpxor x4, x2, x2; \
330 vpand x2, x0, x0; \
331 vpxor x3, x2, x2; \
332 vpxor x2, x0, x0; \
333 vpxor x4, x2, x2; \
336 #define SI6_1(x0, x1, x2, x3, x4) \ argument
337 vpxor x2, x0, x0; \
339 vpxor x3, x2, x2; \
340 vpxor x2, tp, tp; \
342 vpor x0, x2, x2; \
343 vpxor x3, x2, x2; \
345 #define SI6_2(x0, x1, x2, x3, x4) \ argument
348 vpand x2, x1, x1; \
351 vpxor x2, x4, x4; \
353 vpxor x0, x2, x2;
355 #define SI7_1(x0, x1, x2, x3, x4) \ argument
357 vpxor x2, x0, x0; \
358 vpor x3, x2, x2; \
363 vpand x2, x0, x0; \
365 #define SI7_2(x0, x1, x2, x3, x4) \ argument
366 vpand x2, x1, x1; \
367 vpxor x2, tp, x3; \
369 vpand x3, x2, x2; \
374 vpxor x2, x4, x4;
379 #define K2(x0, x1, x2, x3, x4, i) \ argument
386 vpxor RK2, x2 ## 1, x2 ## 1; \
390 vpxor RK2, x2 ## 2, x2 ## 2; \
393 #define LK2(x0, x1, x2, x3, x4, i) \ argument
398 vpslld $3, x2 ## 1, x4 ## 1; \
399 vpsrld $(32 - 3), x2 ## 1, x2 ## 1; \
400 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
401 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
406 vpslld $3, x2 ## 2, x4 ## 2; \
407 vpsrld $(32 - 3), x2 ## 2, x2 ## 2; \
408 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
409 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
414 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
421 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
430 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
431 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
439 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
440 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
447 vpslld $22, x2 ## 1, x4 ## 1; \
448 vpsrld $(32 - 22), x2 ## 1, x2 ## 1; \
449 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
451 vpxor RK2, x2 ## 1, x2 ## 1; \
457 vpslld $22, x2 ## 2, x4 ## 2; \
458 vpsrld $(32 - 22), x2 ## 2, x2 ## 2; \
459 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
461 vpxor RK2, x2 ## 2, x2 ## 2;
463 #define KL2(x0, x1, x2, x3, x4, i) \ argument
465 vpxor RK2, x2 ## 1, x2 ## 1; \
471 vpsrld $22, x2 ## 1, x4 ## 1; \
472 vpslld $(32 - 22), x2 ## 1, x2 ## 1; \
473 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
474 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
476 vpxor RK2, x2 ## 2, x2 ## 2; \
482 vpsrld $22, x2 ## 2, x4 ## 2; \
483 vpslld $(32 - 22), x2 ## 2, x2 ## 2; \
484 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
485 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
489 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
496 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
515 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
516 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
517 vpsrld $3, x2 ## 1, x4 ## 1; \
518 vpslld $(32 - 3), x2 ## 1, x2 ## 1; \
519 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
523 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
524 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
525 vpsrld $3, x2 ## 2, x4 ## 2; \
526 vpslld $(32 - 3), x2 ## 2, x2 ## 2; \
527 vpor x4 ## 2, x2 ## 2, x2 ## 2;
529 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
530 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
531 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); \
533 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
535 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
537 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
539 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
541 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
543 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
545 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
548 vpunpckldq x3, x2, t1; \
549 vpunpckhdq x3, x2, x3; \
553 vpunpcklqdq x3, t2, x2; \
556 #define read_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
557 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
559 #define write_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
560 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)