Lines Matching +full:0 +full:x2

20 	.byte 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
24 .byte 0x87, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0
55 #define S0_1(x0, x1, x2, x3, x4) \ argument
58 vpxor x2, x3, x4; \
63 vpxor x0, x2, x2;
64 #define S0_2(x0, x1, x2, x3, x4) \ argument
67 vpxor x2, x0, x0; \
68 vpand x1, x2, x2; \
69 vpxor x2, x3, x3; \
71 vpxor x4, x2, x2; \
72 vpxor x2, x1, x1;
74 #define S1_1(x0, x1, x2, x3, x4) \ argument
80 vpxor x2, x3, x3; \
83 #define S1_2(x0, x1, x2, x3, x4) \ argument
86 vpxor x2, x4, x4; \
87 vpand x0, x2, x2; \
88 vpxor x1, x2, x2; \
91 vpxor x2, x0, x0; \
94 #define S2_1(x0, x1, x2, x3, x4) \ argument
97 vpand x2, x0, tp; \
100 vpxor x1, x2, x2; \
103 #define S2_2(x0, x1, x2, x3, x4) \ argument
104 vpxor x2, tp, tp; \
105 vpand x3, x2, x2; \
110 vpxor x2, tp, x0; \
111 vpor x2, x1, x1;
113 #define S3_1(x0, x1, x2, x3, x4) \ argument
117 vpxor x2, x0, x0; \
118 vpxor tp, x2, x2; \
120 vpxor x3, x2, x2; \
123 #define S3_2(x0, x1, x2, x3, x4) \ argument
127 vpxor x2, x3, x3; \
129 vpand x1, x2, x2; \
132 vpxor x2, x3, x3;
134 #define S4_1(x0, x1, x2, x3, x4) \ argument
137 vpxor x2, tp, tp; \
138 vpor x3, x2, x2; \
141 vpor x0, x2, x2; \
142 vpxor x1, x2, x2;
143 #define S4_2(x0, x1, x2, x3, x4) \ argument
146 vpand x2, x4, x4; \
147 vpxor tp, x2, x2; \
153 #define S5_1(x0, x1, x2, x3, x4) \ argument
155 vpxor tp, x2, x2; \
158 vpxor x2, x0, x0; \
162 #define S5_2(x0, x1, x2, x3, x4) \ argument
165 vpxor x2, x3, x3; \
167 vpand x4, x2, x2; \
168 vpxor x2, x1, x1; \
169 vpand x0, x2, x2; \
170 vpxor x2, x3, x3;
172 #define S6_1(x0, x1, x2, x3, x4) \ argument
174 vpxor x2, x1, tp; \
175 vpxor x0, x2, x2; \
180 vpxor x2, tp, x1;
181 #define S6_2(x0, x1, x2, x3, x4) \ argument
184 vpand x0, x2, x2; \
186 vpxor x3, x2, x2; \
189 vpxor x2, x1, x1;
191 #define S7_1(x0, x1, x2, x3, x4) \ argument
194 vpand x2, tp, x1; \
197 vpxor x2, tp, x4; \
198 vpxor x3, x2, x2; \
201 #define S7_2(x0, x1, x2, x3, x4) \ argument
202 vpand x0, x2, x2; \
207 vpxor x4, x2, x2; \
212 #define SI0_1(x0, x1, x2, x3, x4) \ argument
217 vpxor tp, x2, x2; \
220 vpxor x2, x0, x0;
221 #define SI0_2(x0, x1, x2, x3, x4) \ argument
222 vpand x3, x2, x2; \
224 vpxor x3, x2, x2; \
228 vpxor x2, x0, x0; \
231 #define SI1_1(x0, x1, x2, x3, x4) \ argument
233 vpxor x2, x0, tp; \
234 vpxor RNOT, x2, x2; \
238 vpxor x2, x1, x1; \
239 vpand x4, x2, x2;
240 #define SI1_2(x0, x1, x2, x3, x4) \ argument
244 vpxor tp, x2, x2; \
246 vpxor x4, x2, x2; \
250 #define SI2_1(x0, x1, x2, x3, x4) \ argument
251 vpxor x1, x2, x2; \
253 vpor x2, tp, tp; \
254 vpxor x3, x2, x2; \
257 vpor x2, x1, x1; \
258 vpxor x0, x2, x2;
259 #define SI2_2(x0, x1, x2, x3, x4) \ argument
262 vpxor x3, x2, x2; \
263 vpxor x2, x4, x4; \
264 vpand x1, x2, x2; \
265 vpxor x3, x2, x2; \
269 #define SI3_1(x0, x1, x2, x3, x4) \ argument
270 vpxor x1, x2, x2; \
271 vpand x2, x1, tp; \
277 vpxor x2, tp, x1;
278 #define SI3_2(x0, x1, x2, x3, x4) \ argument
280 vpxor x2, x0, x0; \
281 vpxor x3, x2, x2; \
284 vpand x2, x0, x0; \
289 #define SI4_1(x0, x1, x2, x3, x4) \ argument
290 vpxor x3, x2, x2; \
292 vpxor x2, tp, tp; \
293 vpor x3, x2, x2; \
296 vpxor x2, tp, x0; \
297 vpand x4, x2, x2;
298 #define SI4_2(x0, x1, x2, x3, x4) \ argument
299 vpxor x0, x2, x2; \
302 vpand x2, x3, x3; \
309 #define SI5_1(x0, x1, x2, x3, x4) \ argument
310 vpor x2, x1, tp; \
311 vpxor x1, x2, x2; \
314 vpxor x3, x2, x2; \
317 vpxor x2, x3, x3; \
318 vpor x0, x2, x2;
319 #define SI5_2(x0, x1, x2, x3, x4) \ argument
321 vpxor x4, x2, x2; \
325 vpand x2, x0, x0; \
326 vpxor x3, x2, x2; \
327 vpxor x2, x0, x0; \
328 vpxor x4, x2, x2; \
331 #define SI6_1(x0, x1, x2, x3, x4) \ argument
332 vpxor x2, x0, x0; \
334 vpxor x3, x2, x2; \
335 vpxor x2, tp, tp; \
337 vpor x0, x2, x2; \
338 vpxor x3, x2, x2; \
340 #define SI6_2(x0, x1, x2, x3, x4) \ argument
343 vpand x2, x1, x1; \
346 vpxor x2, x4, x4; \
348 vpxor x0, x2, x2;
350 #define SI7_1(x0, x1, x2, x3, x4) \ argument
352 vpxor x2, x0, x0; \
353 vpor x3, x2, x2; \
358 vpand x2, x0, x0; \
360 #define SI7_2(x0, x1, x2, x3, x4) \ argument
361 vpand x2, x1, x1; \
362 vpxor x2, tp, x3; \
364 vpand x3, x2, x2; \
369 vpxor x2, x4, x4;
374 #define K2(x0, x1, x2, x3, x4, i) \ argument
375 get_key(i, 0, RK0); \
381 vpxor RK2, x2 ## 1, x2 ## 1; \
385 vpxor RK2, x2 ## 2, x2 ## 2; \
388 #define LK2(x0, x1, x2, x3, x4, i) \ argument
393 vpslld $3, x2 ## 1, x4 ## 1; \
394 vpsrld $(32 - 3), x2 ## 1, x2 ## 1; \
395 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
396 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
401 vpslld $3, x2 ## 2, x4 ## 2; \
402 vpsrld $(32 - 3), x2 ## 2, x2 ## 2; \
403 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
404 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
409 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
416 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
425 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
426 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
427 get_key(i, 0, RK0); \
434 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
435 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
442 vpslld $22, x2 ## 1, x4 ## 1; \
443 vpsrld $(32 - 22), x2 ## 1, x2 ## 1; \
444 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
446 vpxor RK2, x2 ## 1, x2 ## 1; \
452 vpslld $22, x2 ## 2, x4 ## 2; \
453 vpsrld $(32 - 22), x2 ## 2, x2 ## 2; \
454 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
456 vpxor RK2, x2 ## 2, x2 ## 2;
458 #define KL2(x0, x1, x2, x3, x4, i) \ argument
460 vpxor RK2, x2 ## 1, x2 ## 1; \
466 vpsrld $22, x2 ## 1, x4 ## 1; \
467 vpslld $(32 - 22), x2 ## 1, x2 ## 1; \
468 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
469 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
471 vpxor RK2, x2 ## 2, x2 ## 2; \
477 vpsrld $22, x2 ## 2, x4 ## 2; \
478 vpslld $(32 - 22), x2 ## 2, x2 ## 2; \
479 vpor x4 ## 2, x2 ## 2, x2 ## 2; \
480 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
484 vpxor x4 ## 1, x2 ## 1, x2 ## 1; \
491 vpxor x4 ## 2, x2 ## 2, x2 ## 2; \
510 vpxor x2 ## 1, x1 ## 1, x1 ## 1; \
511 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
512 vpsrld $3, x2 ## 1, x4 ## 1; \
513 vpslld $(32 - 3), x2 ## 1, x2 ## 1; \
514 vpor x4 ## 1, x2 ## 1, x2 ## 1; \
518 vpxor x2 ## 2, x1 ## 2, x1 ## 2; \
519 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
520 vpsrld $3, x2 ## 2, x4 ## 2; \
521 vpslld $(32 - 3), x2 ## 2, x2 ## 2; \
522 vpor x4 ## 2, x2 ## 2, x2 ## 2;
524 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
525 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
526 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
527 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
528 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
530 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
531 get_key(i, 0, RK0); \
532 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
534 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
536 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
538 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
540 #define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
543 vpunpckldq x3, x2, t1; \
544 vpunpckhdq x3, x2, x3; \
548 vpunpcklqdq x3, t2, x2; \
551 #define read_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
552 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
554 #define write_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
555 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
571 K2(RA, RB, RC, RD, RE, 0);
657 S(SI0, RE, RB, RC, RA, RD); K2(RC, RD, RB, RE, RA, 0);