• Home
  • Raw
  • Download

Lines Matching refs:x2

54 #define S0_1(x0, x1, x2, x3, x4) \  argument
58 pxor x2, x4; \
63 pxor x0, x2;
64 #define S0_2(x0, x1, x2, x3, x4) \ argument
67 pxor x2, x0; \
68 pand x1, x2; \
69 pxor x2, x3; \
71 pxor x4, x2; \
72 pxor x2, x1;
74 #define S1_1(x0, x1, x2, x3, x4) \ argument
81 pxor x2, x3; \
84 #define S1_2(x0, x1, x2, x3, x4) \ argument
87 pxor x2, x4; \
88 pand x0, x2; \
89 pxor x1, x2; \
92 pxor x2, x0; \
95 #define S2_1(x0, x1, x2, x3, x4) \ argument
99 pand x2, x0; \
102 pxor x1, x2; \
105 #define S2_2(x0, x1, x2, x3, x4) \ argument
106 pxor x2, x0; \
107 pand x3, x2; \
112 pxor x2, x0; \
113 por x2, x1;
115 #define S3_1(x0, x1, x2, x3, x4) \ argument
120 pxor x2, x0; \
121 pxor x1, x2; \
123 pxor x3, x2; \
126 #define S3_2(x0, x1, x2, x3, x4) \ argument
130 pxor x2, x3; \
132 pand x1, x2; \
135 pxor x2, x3;
137 #define S4_1(x0, x1, x2, x3, x4) \ argument
141 pxor x2, x3; \
142 por x4, x2; \
145 por x0, x2; \
146 pxor x1, x2;
147 #define S4_2(x0, x1, x2, x3, x4) \ argument
150 pand x2, x4; \
151 pxor x3, x2; \
157 #define S5_1(x0, x1, x2, x3, x4) \ argument
160 pxor x1, x2; \
163 pxor x2, x0; \
167 #define S5_2(x0, x1, x2, x3, x4) \ argument
170 pxor x2, x3; \
172 pand x4, x2; \
173 pxor x2, x1; \
174 pand x0, x2; \
175 pxor x2, x3;
177 #define S6_1(x0, x1, x2, x3, x4) \ argument
180 pxor x2, x1; \
181 pxor x0, x2; \
186 pxor x2, x1;
187 #define S6_2(x0, x1, x2, x3, x4) \ argument
190 pand x0, x2; \
192 pxor x3, x2; \
195 pxor x2, x1;
197 #define S7_1(x0, x1, x2, x3, x4) \ argument
201 pand x2, x1; \
204 pxor x2, x4; \
205 pxor x3, x2; \
208 #define S7_2(x0, x1, x2, x3, x4) \ argument
209 pand x0, x2; \
214 pxor x4, x2; \
219 #define SI0_1(x0, x1, x2, x3, x4) \ argument
225 pxor x3, x2; \
228 pxor x2, x0;
229 #define SI0_2(x0, x1, x2, x3, x4) \ argument
230 pand x3, x2; \
232 pxor x3, x2; \
236 pxor x2, x0; \
239 #define SI1_1(x0, x1, x2, x3, x4) \ argument
242 pxor x2, x0; \
243 pxor RNOT, x2; \
247 pxor x2, x1; \
248 pand x4, x2;
249 #define SI1_2(x0, x1, x2, x3, x4) \ argument
253 pxor x0, x2; \
255 pxor x4, x2; \
259 #define SI2_1(x0, x1, x2, x3, x4) \ argument
260 pxor x1, x2; \
263 por x2, x3; \
264 pxor x4, x2; \
267 por x2, x1; \
268 pxor x0, x2;
269 #define SI2_2(x0, x1, x2, x3, x4) \ argument
272 pxor x3, x2; \
273 pxor x2, x4; \
274 pand x1, x2; \
275 pxor x3, x2; \
279 #define SI3_1(x0, x1, x2, x3, x4) \ argument
280 pxor x1, x2; \
282 pand x2, x1; \
288 pxor x2, x1;
289 #define SI3_2(x0, x1, x2, x3, x4) \ argument
291 pxor x2, x0; \
292 pxor x3, x2; \
295 pand x2, x0; \
300 #define SI4_1(x0, x1, x2, x3, x4) \ argument
301 pxor x3, x2; \
304 pxor x2, x0; \
305 por x3, x2; \
308 pxor x2, x0; \
309 pand x4, x2;
310 #define SI4_2(x0, x1, x2, x3, x4) \ argument
311 pxor x0, x2; \
314 pand x2, x3; \
321 #define SI5_1(x0, x1, x2, x3, x4) \ argument
323 por x2, x1; \
324 pxor x4, x2; \
327 pxor x3, x2; \
330 pxor x2, x3; \
331 por x0, x2;
332 #define SI5_2(x0, x1, x2, x3, x4) \ argument
334 pxor x4, x2; \
338 pand x2, x0; \
339 pxor x3, x2; \
340 pxor x2, x0; \
341 pxor x4, x2; \
344 #define SI6_1(x0, x1, x2, x3, x4) \ argument
345 pxor x2, x0; \
348 pxor x3, x2; \
349 pxor x2, x0; \
351 por x4, x2; \
352 pxor x3, x2; \
354 #define SI6_2(x0, x1, x2, x3, x4) \ argument
357 pand x2, x1; \
360 pxor x2, x4; \
362 pxor x0, x2;
364 #define SI7_1(x0, x1, x2, x3, x4) \ argument
367 pxor x2, x0; \
368 por x4, x2; \
373 pand x2, x0; \
375 #define SI7_2(x0, x1, x2, x3, x4) \ argument
376 pand x2, x1; \
377 pxor x2, x3; \
379 pand x3, x2; \
384 pxor x2, x4;
390 #define K2(x0, x1, x2, x3, x4, i) \ argument
397 pxor RK2, x2 ## 1; \
401 pxor RK2, x2 ## 2; \
404 #define LK2(x0, x1, x2, x3, x4, i) \ argument
410 movdqa x2 ## 1, x4 ## 1; \
411 pslld $3, x2 ## 1; \
413 por x4 ## 1, x2 ## 1; \
414 pxor x2 ## 1, x1 ## 1; \
420 movdqa x2 ## 2, x4 ## 2; \
421 pslld $3, x2 ## 2; \
423 por x4 ## 2, x2 ## 2; \
424 pxor x2 ## 2, x1 ## 2; \
431 pxor x2 ## 1, x3 ## 1; \
441 pxor x2 ## 2, x3 ## 2; \
452 pxor x3 ## 1, x2 ## 1; \
453 pxor x4 ## 1, x2 ## 1; \
462 pxor x3 ## 2, x2 ## 2; \
463 pxor x4 ## 2, x2 ## 2; \
471 movdqa x2 ## 1, x4 ## 1; \
472 pslld $22, x2 ## 1; \
474 por x4 ## 1, x2 ## 1; \
476 pxor RK2, x2 ## 1; \
483 movdqa x2 ## 2, x4 ## 2; \
484 pslld $22, x2 ## 2; \
486 por x4 ## 2, x2 ## 2; \
488 pxor RK2, x2 ## 2;
490 #define KL2(x0, x1, x2, x3, x4, i) \ argument
492 pxor RK2, x2 ## 1; \
499 movdqa x2 ## 1, x4 ## 1; \
500 psrld $22, x2 ## 1; \
502 por x4 ## 1, x2 ## 1; \
503 pxor x3 ## 1, x2 ## 1; \
505 pxor RK2, x2 ## 2; \
512 movdqa x2 ## 2, x4 ## 2; \
513 psrld $22, x2 ## 2; \
515 por x4 ## 2, x2 ## 2; \
516 pxor x3 ## 2, x2 ## 2; \
521 pxor x4 ## 1, x2 ## 1; \
530 pxor x4 ## 2, x2 ## 2; \
556 pxor x2 ## 1, x1 ## 1; \
557 pxor x2 ## 1, x3 ## 1; \
558 movdqa x2 ## 1, x4 ## 1; \
559 psrld $3, x2 ## 1; \
561 por x4 ## 1, x2 ## 1; \
565 pxor x2 ## 2, x1 ## 2; \
566 pxor x2 ## 2, x3 ## 2; \
567 movdqa x2 ## 2, x4 ## 2; \
568 psrld $3, x2 ## 2; \
570 por x4 ## 2, x2 ## 2;
572 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
573 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
574 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
575 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
576 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
578 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
580 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
582 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
584 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
586 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
588 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
592 movdqa x2, t1; \
593 punpckhdq x3, x2; \
599 punpcklqdq x2, t2; \
600 punpckhqdq x2, x3; \
601 movdqa t2, x2;
603 #define read_blocks(in, x0, x1, x2, x3, t0, t1, t2) \ argument
606 movdqu (2*4*4)(in), x2; \
609 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
611 #define write_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
612 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
616 movdqu x2, (2*4*4)(out); \
619 #define xor_blocks(out, x0, x1, x2, x3, t0, t1, t2) \ argument
620 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
629 pxor t0, x2; \
630 movdqu x2, (2*4*4)(out); \