Lines Matching +full:0 +full:x2

21 	.byte 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
26 .byte 0x87, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0
31 .byte 0x0e, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0
61 #define S0_1(x0, x1, x2, x3, x4) \ argument
64 vpxor x2, x3, x4; \
69 vpxor x0, x2, x2;
70 #define S0_2(x0, x1, x2, x3, x4) \ argument
73 vpxor x2, x0, x0; \
74 vpand x1, x2, x2; \
75 vpxor x2, x3, x3; \
77 vpxor x4, x2, x2; \
78 vpxor x2, x1, x1;
80 #define S1_1(x0, x1, x2, x3, x4) \ argument
86 vpxor x2, x3, x3; \
89 #define S1_2(x0, x1, x2, x3, x4) \ argument
92 vpxor x2, x4, x4; \
93 vpand x0, x2, x2; \
94 vpxor x1, x2, x2; \
97 vpxor x2, x0, x0; \
100 #define S2_1(x0, x1, x2, x3, x4) \ argument
103 vpand x2, x0, tp; \
106 vpxor x1, x2, x2; \
109 #define S2_2(x0, x1, x2, x3, x4) \ argument
110 vpxor x2, tp, tp; \
111 vpand x3, x2, x2; \
116 vpxor x2, tp, x0; \
117 vpor x2, x1, x1;
119 #define S3_1(x0, x1, x2, x3, x4) \ argument
123 vpxor x2, x0, x0; \
124 vpxor tp, x2, x2; \
126 vpxor x3, x2, x2; \
129 #define S3_2(x0, x1, x2, x3, x4) \ argument
133 vpxor x2, x3, x3; \
135 vpand x1, x2, x2; \
138 vpxor x2, x3, x3;
140 #define S4_1(x0, x1, x2, x3, x4) \ argument
143 vpxor x2, tp, tp; \
144 vpor x3, x2, x2; \
147 vpor x0, x2, x2; \
148 vpxor x1, x2, x2;
149 #define S4_2(x0, x1, x2, x3, x4) \ argument
152 vpand x2, x4, x4; \
153 vpxor tp, x2, x2; \
159 #define S5_1(x0, x1, x2, x3, x4) \ argument
161 vpxor tp, x2, x2; \
164 vpxor x2, x0, x0; \
168 #define S5_2(x0, x1, x2, x3, x4) \ argument
171 vpxor x2, x3, x3; \
173 vpand x4, x2, x2; \
174 vpxor x2, x1, x1; \
175 vpand x0, x2, x2; \
176 vpxor x2, x3, x3;
178 #define S6_1(x0, x1, x2, x3, x4) \ argument
180 vpxor x2, x1, tp; \
181 vpxor x0, x2, x2; \
186 vpxor x2, tp, x1;
187 #define S6_2(x0, x1, x2, x3, x4) \ argument
190 vpand x0, x2, x2; \
192 vpxor x3, x2, x2; \
195 vpxor x2, x1, x1;
197 #define S7_1(x0, x1, x2, x3, x4) \ argument
200 vpand x2, tp, x1; \
203 vpxor x2, tp, x4; \
204 vpxor x3, x2, x2; \
207 #define S7_2(x0, x1, x2, x3, x4) \ argument
208 vpand x0, x2, x2; \
213 vpxor x4, x2, x2; \
218 #define SI0_1(x0, x1, x2, x3, x4) \ argument
223 vpxor tp, x2, x2; \
226 vpxor x2, x0, x0;
227 #define SI0_2(x0, x1, x2, x3, x4) \ argument
228 vpand x3, x2, x2; \
230 vpxor x3, x2, x2; \
234 vpxor x2, x0, x0; \
237 #define SI1_1(x0, x1, x2, x3, x4) \ argument
239 vpxor x2, x0, tp; \
240 vpxor RNOT, x2, x2; \
244 vpxor x2, x1, x1; \
245 vpand x4, x2, x2;
246 #define SI1_2(x0, x1, x2, x3, x4) \ argument
250 vpxor tp, x2, x2; \
252 vpxor x4, x2, x2; \
256 #define SI2_1(x0, x1, x2, x3, x4) \ argument
257 vpxor x1, x2, x2; \
259 vpor x2, tp, tp; \
260 vpxor x3, x2, x2; \
263 vpor x2, x1, x1; \
264 vpxor x0, x2, x2;
265 #define SI2_2(x0, x1, x2, x3, x4) \ argument
268 vpxor x3, x2, x2; \
269 vpxor x2, x4, x4; \
270 vpand x1, x2, x2; \
271 vpxor x3, x2, x2; \
275 #define SI3_1(x0, x1, x2, x3, x4) \ argument
276 vpxor x1, x2, x2; \
277 vpand x2, x1, tp; \
283 vpxor x2, tp, x1;
284 #define SI3_2(x0, x1, x2, x3, x4) \ argument
286 vpxor x2, x0, x0; \
287 vpxor x3, x2, x2; \
290 vpand x2, x0, x0; \
295 #define SI4_1(x0, x1, x2, x3, x4) \ argument
296 vpxor x3, x2, x2; \
298 vpxor x2, tp, tp; \
299 vpor x3, x2, x2; \
302 vpxor x2, tp, x0; \
303 vpand x4, x2, x2;
304 #define SI4_2(x0, x1, x2, x3, x4) \ argument
305 vpxor x0, x2, x2; \
308 vpand x2, x3, x3; \
315 #define SI5_1(x0, x1, x2, x3, x4) \ argument
316 vpor x2, x1, tp; \
317 vpxor x1, x2, x2; \
320 vpxor x3, x2, x2; \
323 vpxor x2, x3, x3; \
324 vpor x0, x2, x2;
325 #define SI5_2(x0, x1, x2, x3, x4) \ argument
327 vpxor x4, x2, x2; \
331 vpand x2, x0, x0; \
332 vpxor x3, x2, x2; \
333 vpxor x2, x0, x0; \
334 vpxor x4, x2, x2; \
337 #define SI6_1(x0, x1, x2, x3, x4) \ argument
338 vpxor x2, x0, x0; \
340 vpxor x3, x2, x2; \
341 vpxor x2, tp, tp; \
343 vpor x0, x2, x2; \
344 vpxor x3, x2, x2; \
346 #define SI6_2(x0, x1, x2, x3, x4) \ argument
349 vpand x2, x1, x1; \
352 vpxor x2, x4, x4; \
354 vpxor x0, x2, x2;
356 #define SI7_1(x0, x1, x2, x3, x4) \ argument
358 vpxor x2, x0, x0; \
359 vpor x3, x2, x2; \
364 vpand x2, x0, x0; \
366 #define SI7_2(x0, x1, x2, x3, x4) \ argument
367 vpand x2, x1, x1; \
368 vpxor x2, tp, x3; \
370 vpand x3, x2, x2; \
375 vpxor x2, x4, x4;
380 #define K2(x0, x1, x2, x3, x4, i) \ argument
381 get_key(i, 0, RK0); \
387 vpxor RK2, x2 ## 1, x2 ## 1; \
391 vpxor RK2, x2 ## 2, x2 ## 2; \
394 #define LK2(x0, x1, x2, x3, x4, i) \ argument
399 vpslld $3, x2 ## 1, x4 ## 1; \
400 vpsrld $(32 - 3), x2 ## 1, x2 ## 1; \
401 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
402 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
407 vpslld $3, x2 ## 2, x4 ## 2; \
408 vpsrld $(32 - 3), x2 ## 2, x2 ## 2; \
409 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
410 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
415 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
422 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
431 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
432 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
433 get_key(i, 0, RK0); \
440 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
441 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
448 vpslld $22, x2 ## 1, x4 ## 1; \
449 vpsrld $(32 - 22), x2 ## 1, x2 ## 1; \
450 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
452 vpxor RK2, x2 ## 1, x2 ## 1; \
458 vpslld $22, x2 ## 2, x4 ## 2; \
459 vpsrld $(32 - 22), x2 ## 2, x2 ## 2; \
460 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
462 vpxor RK2, x2 ## 2, x2 ## 2;
464 #define KL2(x0, x1, x2, x3, x4, i) \ argument
466 vpxor RK2, x2 ## 1, x2 ## 1; \
472 vpsrld $22, x2 ## 1, x4 ## 1; \
473 vpslld $(32 - 22), x2 ## 1, x2 ## 1; \
474 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
475 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
477 vpxor RK2, x2 ## 2, x2 ## 2; \
483 vpsrld $22, x2 ## 2, x4 ## 2; \
484 vpslld $(32 - 22), x2 ## 2, x2 ## 2; \
485 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
486 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
490 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
497 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
516 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
517 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
518 vpsrld $3, x2 ## 1, x4 ## 1; \
519 vpslld $(32 - 3), x2 ## 1, x2 ## 1; \
520 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
524 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
525 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
526 vpsrld $3, x2 ## 2, x4 ## 2; \
527 vpslld $(32 - 3), x2 ## 2, x2 ## 2; \
528 vpor x4 ## 2, x2 ## 2, x2 ## 2;
530 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
531 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
532 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
533 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 SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
537 get_key(i, 0, RK0); \
538 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
540 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
542 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
544 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
546 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
549 vpunpckldq x3, x2, t1; \
550 vpunpckhdq x3, x2, x3; \
554 vpunpcklqdq x3, t2, x2; \
557 #define read_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
558 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
560 #define write_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
561 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
577 K2(RA, RB, RC, RD, RE, 0);
663 S(SI0, RE, RB, RC, RA, RD); K2(RC, RD, RB, RE, RA, 0);