Lines Matching refs:x0
56 #define S0_1(x0, x1, x2, x3, x4) \ argument
58 por x0, x3; \
59 pxor x4, x0; \
63 pand x0, x1; \
65 pxor x0, x2;
66 #define S0_2(x0, x1, x2, x3, x4) \ argument
67 pxor x3, x0; \
68 por x0, x4; \
69 pxor x2, x0; \
76 #define S1_1(x0, x1, x2, x3, x4) \ argument
78 pxor x0, x1; \
79 pxor x3, x0; \
82 por x1, x0; \
84 pxor x3, x0; \
86 #define S1_2(x0, x1, x2, x3, x4) \ argument
90 pand x0, x2; \
92 por x0, x1; \
93 pxor RNOT, x0; \
94 pxor x2, x0; \
97 #define S2_1(x0, x1, x2, x3, x4) \ argument
99 pxor x0, x1; \
100 movdqa x0, x4; \
101 pand x2, x0; \
102 pxor x3, x0; \
106 pand x0, x1;
107 #define S2_2(x0, x1, x2, x3, x4) \ argument
108 pxor x2, x0; \
111 pxor RNOT, x0; \
112 pxor x0, x3; \
113 pxor x0, x4; \
114 pxor x2, x0; \
117 #define S3_1(x0, x1, x2, x3, x4) \ argument
120 por x0, x3; \
121 pand x0, x4; \
122 pxor x2, x0; \
126 por x4, x0; \
128 #define S3_2(x0, x1, x2, x3, x4) \ argument
129 pxor x0, x1; \
130 pand x3, x0; \
136 pxor x3, x0; \
139 #define S4_1(x0, x1, x2, x3, x4) \ argument
141 pand x0, x3; \
142 pxor x4, x0; \
145 pxor x1, x0; \
147 por x0, x2; \
149 #define S4_2(x0, x1, x2, x3, x4) \ argument
150 pand x0, x1; \
154 pxor x0, x4; \
157 pxor x0, x3;
159 #define S5_1(x0, x1, x2, x3, x4) \ argument
161 por x0, x1; \
164 pxor x0, x4; \
165 pxor x2, x0; \
168 pxor x0, x4;
169 #define S5_2(x0, x1, x2, x3, x4) \ argument
170 pand x3, x0; \
173 pxor x1, x0; \
176 pand x0, x2; \
179 #define S6_1(x0, x1, x2, x3, x4) \ argument
181 pxor x0, x3; \
183 pxor x0, x2; \
184 pand x3, x0; \
187 pxor x1, x0; \
189 #define S6_2(x0, x1, x2, x3, x4) \ argument
191 pxor x0, x4; \
192 pand x0, x2; \
196 pxor x0, x3; \
199 #define S7_1(x0, x1, x2, x3, x4) \ argument
202 pxor RNOT, x0; \
208 pxor x0, x3; \
209 por x1, x0;
210 #define S7_2(x0, x1, x2, x3, x4) \ argument
211 pand x0, x2; \
212 pxor x4, x0; \
214 pand x0, x3; \
218 por x0, x4; \
221 #define SI0_1(x0, x1, x2, x3, x4) \ argument
223 pxor x0, x1; \
226 pxor RNOT, x0; \
228 pxor x0, x3; \
229 pand x1, x0; \
230 pxor x2, x0;
231 #define SI0_2(x0, x1, x2, x3, x4) \ argument
236 pand x0, x3; \
237 pxor x0, x1; \
238 pxor x2, x0; \
241 #define SI1_1(x0, x1, x2, x3, x4) \ argument
243 movdqa x0, x4; \
244 pxor x2, x0; \
251 #define SI1_2(x0, x1, x2, x3, x4) \ argument
254 pxor x0, x3; \
255 pxor x0, x2; \
256 por x4, x0; \
258 pxor x0, x1; \
261 #define SI2_1(x0, x1, x2, x3, x4) \ argument
267 pxor x0, x4; \
270 pxor x0, x2;
271 #define SI2_2(x0, x1, x2, x3, x4) \ argument
279 pxor x0, x4;
281 #define SI3_1(x0, x1, x2, x3, x4) \ argument
285 pxor x0, x1; \
286 por x4, x0; \
288 pxor x3, x0; \
291 #define SI3_2(x0, x1, x2, x3, x4) \ argument
293 pxor x2, x0; \
296 pxor x0, x1; \
297 pand x2, x0; \
299 pxor x0, x3; \
300 pxor x1, x0;
302 #define SI4_1(x0, x1, x2, x3, x4) \ argument
304 movdqa x0, x4; \
305 pand x1, x0; \
306 pxor x2, x0; \
309 pxor x0, x1; \
310 pxor x2, x0; \
312 #define SI4_2(x0, x1, x2, x3, x4) \ argument
313 pxor x0, x2; \
314 por x4, x0; \
315 pxor x3, x0; \
319 pand x0, x1; \
321 pxor x3, x0;
323 #define SI5_1(x0, x1, x2, x3, x4) \ argument
330 por x0, x3; \
331 pxor RNOT, x0; \
333 por x0, x2;
334 #define SI5_2(x0, x1, x2, x3, x4) \ argument
337 pand x0, x4; \
338 pxor x1, x0; \
340 pand x2, x0; \
342 pxor x2, x0; \
346 #define SI6_1(x0, x1, x2, x3, x4) \ argument
347 pxor x2, x0; \
348 movdqa x0, x4; \
349 pand x3, x0; \
351 pxor x2, x0; \
355 pand x0, x3;
356 #define SI6_2(x0, x1, x2, x3, x4) \ argument
357 pxor RNOT, x0; \
360 pxor x0, x4; \
363 pxor x1, x0; \
364 pxor x0, x2;
366 #define SI7_1(x0, x1, x2, x3, x4) \ argument
368 pand x0, x3; \
369 pxor x2, x0; \
372 pxor RNOT, x0; \
374 pxor x0, x4; \
375 pand x2, x0; \
376 pxor x1, x0;
377 #define SI7_2(x0, x1, x2, x3, x4) \ argument
382 por x0, x3; \
385 pand x0, x4; \
392 #define K2(x0, x1, x2, x3, x4, i) \ argument
397 pxor RK0, x0 ## 1; \
401 pxor RK0, x0 ## 2; \
406 #define LK2(x0, x1, x2, x3, x4, i) \ argument
407 movdqa x0 ## 1, x4 ## 1; \
408 pslld $13, x0 ## 1; \
410 por x4 ## 1, x0 ## 1; \
411 pxor x0 ## 1, x1 ## 1; \
417 movdqa x0 ## 2, x4 ## 2; \
418 pslld $13, x0 ## 2; \
420 por x4 ## 2, x0 ## 2; \
421 pxor x0 ## 2, x1 ## 2; \
431 movdqa x0 ## 1, x4 ## 1; \
441 movdqa x0 ## 2, x4 ## 2; \
452 pxor x1 ## 1, x0 ## 1; \
453 pxor x3 ## 1, x0 ## 1; \
462 pxor x1 ## 2, x0 ## 2; \
463 pxor x3 ## 2, x0 ## 2; \
469 movdqa x0 ## 1, x4 ## 1; \
470 pslld $5, x0 ## 1; \
472 por x4 ## 1, x0 ## 1; \
477 pxor RK0, x0 ## 1; \
481 movdqa x0 ## 2, x4 ## 2; \
482 pslld $5, x0 ## 2; \
484 por x4 ## 2, x0 ## 2; \
489 pxor RK0, x0 ## 2; \
492 #define KL2(x0, x1, x2, x3, x4, i) \ argument
493 pxor RK0, x0 ## 1; \
495 movdqa x0 ## 1, x4 ## 1; \
496 psrld $5, x0 ## 1; \
498 por x4 ## 1, x0 ## 1; \
506 pxor RK0, x0 ## 2; \
508 movdqa x0 ## 2, x4 ## 2; \
509 psrld $5, x0 ## 2; \
511 por x4 ## 2, x0 ## 2; \
519 pxor x3 ## 1, x0 ## 1; \
522 pxor x1 ## 1, x0 ## 1; \
528 pxor x3 ## 2, x0 ## 2; \
531 pxor x1 ## 2, x0 ## 2; \
541 pxor x0 ## 1, x1 ## 1; \
542 movdqa x0 ## 1, x4 ## 1; \
545 movdqa x0 ## 1, x4 ## 1; \
550 pxor x0 ## 2, x1 ## 2; \
551 movdqa x0 ## 2, x4 ## 2; \
554 movdqa x0 ## 2, x4 ## 2; \
555 psrld $13, x0 ## 1; \
557 por x4 ## 1, x0 ## 1; \
564 psrld $13, x0 ## 2; \
566 por x4 ## 2, x0 ## 2; \
574 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
575 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
576 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
577 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
578 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
580 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
582 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
584 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
586 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
588 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
590 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
591 movdqa x0, t2; \
592 punpckldq x1, x0; \
597 movdqa x0, x1; \
598 punpcklqdq t1, x0; \
605 #define read_blocks(in, x0, x1, x2, x3, t0, t1, t2) \ argument
606 movdqu (0*4*4)(in), x0; \
611 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
613 #define write_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
614 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
616 movdqu x0, (0*4*4)(out); \
621 #define xor_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
622 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
625 pxor t0, x0; \
626 movdqu x0, (0*4*4)(out); \