Lines Matching +full:3 +full:x3
20 .byte 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
51 #define S0_1(x0, x1, x2, x3, x4) \ argument
52 vpor x0, x3, tp; \
53 vpxor x3, x0, x0; \
54 vpxor x2, x3, x4; \
56 vpxor x1, tp, x3; \
60 #define S0_2(x0, x1, x2, x3, x4) \ argument
61 vpxor x3, x0, x0; \
65 vpxor x2, x3, x3; \
70 #define S1_1(x0, x1, x2, x3, x4) \ argument
72 vpxor x3, x0, x0; \
73 vpxor RNOT, x3, x3; \
76 vpxor x2, x3, x3; \
77 vpxor x3, x0, x0; \
78 vpxor x3, tp, x1;
79 #define S1_2(x0, x1, x2, x3, x4) \ argument
80 vpxor x4, x3, x3; \
90 #define S2_1(x0, x1, x2, x3, x4) \ argument
91 vpxor RNOT, x3, x3; \
94 vpxor x3, tp, tp; \
95 vpor x0, x3, x3; \
97 vpxor x1, x3, x3; \
99 #define S2_2(x0, x1, x2, x3, x4) \ argument
101 vpand x3, x2, x2; \
102 vpor x1, x3, x3; \
104 vpxor tp, x3, x3; \
109 #define S3_1(x0, x1, x2, x3, x4) \ argument
110 vpxor x3, x1, tp; \
111 vpor x0, x3, x3; \
115 vpand x3, tp, x1; \
116 vpxor x3, x2, x2; \
118 vpxor x3, x4, x4;
119 #define S3_2(x0, x1, x2, x3, x4) \ argument
121 vpand x3, x0, x0; \
122 vpand x4, x3, x3; \
123 vpxor x2, x3, x3; \
126 vpxor x3, x4, x4; \
127 vpxor x3, x0, x0; \
128 vpxor x2, x3, x3;
130 #define S4_1(x0, x1, x2, x3, x4) \ argument
131 vpand x0, x3, tp; \
132 vpxor x3, x0, x0; \
134 vpor x3, x2, x2; \
136 vpxor tp, x3, x4; \
139 #define S4_2(x0, x1, x2, x3, x4) \ argument
145 vpor x1, tp, x3; \
147 vpxor x0, x3, x3;
149 #define S5_1(x0, x1, x2, x3, x4) \ argument
152 vpxor RNOT, x3, x3; \
156 vpor x3, x4, x4; \
158 #define S5_2(x0, x1, x2, x3, x4) \ argument
159 vpand x3, x0, x0; \
160 vpxor x3, x1, x1; \
161 vpxor x2, x3, x3; \
166 vpxor x2, x3, x3;
168 #define S6_1(x0, x1, x2, x3, x4) \ argument
169 vpxor x0, x3, x3; \
172 vpand x3, x0, x0; \
173 vpor x3, tp, tp; \
177 #define S6_2(x0, x1, x2, x3, x4) \ argument
178 vpxor x4, x3, x3; \
182 vpxor x3, x2, x2; \
183 vpand x1, x3, x3; \
184 vpxor x0, x3, x3; \
187 #define S7_1(x0, x1, x2, x3, x4) \ argument
191 vpxor x3, x1, x1; \
192 vpor tp, x3, x3; \
194 vpxor x3, x2, x2; \
195 vpxor x0, x3, x3; \
197 #define S7_2(x0, x1, x2, x3, x4) \ argument
200 vpxor x3, x4, x4; \
201 vpand x0, x3, x3; \
204 vpxor x1, x3, x3; \
208 #define SI0_1(x0, x1, x2, x3, x4) \ argument
210 vpor x1, x3, tp; \
211 vpxor x1, x3, x4; \
214 vpxor x0, tp, x3; \
217 #define SI0_2(x0, x1, x2, x3, x4) \ argument
218 vpand x3, x2, x2; \
219 vpxor x4, x3, x3; \
220 vpxor x3, x2, x2; \
221 vpxor x3, x1, x1; \
222 vpand x0, x3, x3; \
225 vpxor x3, x4, x4;
227 #define SI1_1(x0, x1, x2, x3, x4) \ argument
228 vpxor x3, x1, x1; \
232 vpxor x3, x4, x4; \
233 vpand x1, x3, x3; \
236 #define SI1_2(x0, x1, x2, x3, x4) \ argument
238 vpor x3, x1, x1; \
239 vpxor tp, x3, x3; \
246 #define SI2_1(x0, x1, x2, x3, x4) \ argument
248 vpxor RNOT, x3, tp; \
250 vpxor x3, x2, x2; \
251 vpxor x0, x3, x4; \
252 vpxor x1, tp, x3; \
255 #define SI2_2(x0, x1, x2, x3, x4) \ argument
257 vpor x3, x4, x4; \
258 vpxor x3, x2, x2; \
261 vpxor x3, x2, x2; \
262 vpxor x4, x3, x3; \
265 #define SI3_1(x0, x1, x2, x3, x4) \ argument
270 vpxor x3, x1, x4; \
271 vpxor x3, x0, x0; \
272 vpor tp, x3, x3; \
274 #define SI3_2(x0, x1, x2, x3, x4) \ argument
275 vpxor x3, x1, x1; \
277 vpxor x3, x2, x2; \
278 vpand x1, x3, x3; \
281 vpxor x3, x4, x4; \
282 vpxor x0, x3, x3; \
285 #define SI4_1(x0, x1, x2, x3, x4) \ argument
286 vpxor x3, x2, x2; \
289 vpor x3, x2, x2; \
294 #define SI4_2(x0, x1, x2, x3, x4) \ argument
297 vpxor x3, x0, x0; \
298 vpand x2, x3, x3; \
299 vpxor x3, x4, x4; \
300 vpxor x1, x3, x3; \
303 vpxor x3, x0, x0;
305 #define SI5_1(x0, x1, x2, x3, x4) \ argument
308 vpxor x3, tp, tp; \
309 vpand x1, x3, x3; \
310 vpxor x3, x2, x2; \
311 vpor x0, x3, x3; \
313 vpxor x2, x3, x3; \
315 #define SI5_2(x0, x1, x2, x3, x4) \ argument
320 vpxor x3, tp, x1; \
322 vpxor x3, x2, x2; \
325 vpxor x3, x4, x4;
327 #define SI6_1(x0, x1, x2, x3, x4) \ argument
329 vpand x3, x0, tp; \
330 vpxor x3, x2, x2; \
332 vpxor x1, x3, x3; \
334 vpxor x3, x2, x2; \
335 vpand tp, x3, x3;
336 #define SI6_2(x0, x1, x2, x3, x4) \ argument
338 vpxor x1, x3, x3; \
341 vpxor x4, x3, x3; \
346 #define SI7_1(x0, x1, x2, x3, x4) \ argument
347 vpand x0, x3, tp; \
349 vpor x3, x2, x2; \
350 vpxor x1, x3, x4; \
356 #define SI7_2(x0, x1, x2, x3, x4) \ argument
358 vpxor x2, tp, x3; \
359 vpxor x3, x4, x4; \
360 vpand x3, x2, x2; \
361 vpor x0, x3, x3; \
363 vpxor x4, x3, x3; \
370 #define K2(x0, x1, x2, x3, x4, i) \ argument
374 get_key(i, 3, RK3); \
378 vpxor RK3, x3 ## 1, x3 ## 1; \
382 vpxor RK3, x3 ## 2, x3 ## 2;
384 #define LK2(x0, x1, x2, x3, x4, i) \ argument
389 vpslld $3, x2 ## 1, x4 ## 1; \
390 vpsrld $(32 - 3), x2 ## 1, x2 ## 1; \
397 vpslld $3, x2 ## 2, x4 ## 2; \
398 vpsrld $(32 - 3), x2 ## 2, x2 ## 2; \
404 vpslld $3, x0 ## 1, x4 ## 1; \
405 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
406 vpxor x4 ## 1, x3 ## 1, x3 ## 1; \
411 vpslld $3, x0 ## 2, x4 ## 2; \
412 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
413 vpxor x4 ## 2, x3 ## 2, x3 ## 2; \
414 get_key(i, 3, RK3); \
415 vpslld $7, x3 ## 1, x4 ## 1; \
416 vpsrld $(32 - 7), x3 ## 1, x3 ## 1; \
417 vpor x4 ## 1, x3 ## 1, x3 ## 1; \
420 vpxor x3 ## 1, x0 ## 1, x0 ## 1; \
421 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
424 vpslld $7, x3 ## 2, x4 ## 2; \
425 vpsrld $(32 - 7), x3 ## 2, x3 ## 2; \
426 vpor x4 ## 2, x3 ## 2, x3 ## 2; \
429 vpxor x3 ## 2, x0 ## 2, x0 ## 2; \
430 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
434 vpxor RK3, x3 ## 1, x3 ## 1; \
444 vpxor RK3, x3 ## 2, x3 ## 2; \
454 #define KL2(x0, x1, x2, x3, x4, i) \ argument
460 vpxor RK3, x3 ## 1, x3 ## 1; \
465 vpxor x3 ## 1, x2 ## 1, x2 ## 1; \
471 vpxor RK3, x3 ## 2, x3 ## 2; \
476 vpxor x3 ## 2, x2 ## 2, x2 ## 2; \
477 vpxor x3 ## 1, x0 ## 1, x0 ## 1; \
484 vpxor x3 ## 2, x0 ## 2, x0 ## 2; \
491 vpsrld $7, x3 ## 1, x4 ## 1; \
492 vpslld $(32 - 7), x3 ## 1, x3 ## 1; \
493 vpor x4 ## 1, x3 ## 1, x3 ## 1; \
495 vpslld $3, x0 ## 1, x4 ## 1; \
496 vpxor x4 ## 1, x3 ## 1, x3 ## 1; \
497 vpsrld $7, x3 ## 2, x4 ## 2; \
498 vpslld $(32 - 7), x3 ## 2, x3 ## 2; \
499 vpor x4 ## 2, x3 ## 2, x3 ## 2; \
501 vpslld $3, x0 ## 2, x4 ## 2; \
502 vpxor x4 ## 2, x3 ## 2, x3 ## 2; \
507 vpxor x2 ## 1, x3 ## 1, x3 ## 1; \
508 vpsrld $3, x2 ## 1, x4 ## 1; \
509 vpslld $(32 - 3), x2 ## 1, x2 ## 1; \
515 vpxor x2 ## 2, x3 ## 2, x3 ## 2; \
516 vpsrld $3, x2 ## 2, x4 ## 2; \
517 vpslld $(32 - 3), x2 ## 2, x2 ## 2; \
520 #define S(SBOX, x0, x1, x2, x3, x4) \ argument
521 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
522 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
523 SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
524 SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);
526 #define SP(SBOX, x0, x1, x2, x3, x4, i) \ argument
528 SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
530 SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
531 get_key(i, 3, RK3); \
532 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 transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \ argument
539 vpunpckldq x3, x2, t1; \
540 vpunpckhdq x3, x2, x3; \
544 vpunpcklqdq x3, t2, x2; \
545 vpunpckhqdq x3, t2, x3;
547 #define read_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
548 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
550 #define write_blocks(x0, x1, x2, x3, t0, t1, t2) \ argument
551 transpose_4x4(x0, x1, x2, x3, t0, t1, t2)
569 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3);
648 SP(SI3, RD, RB, RE, RC, RA, 3); KL2(RE, RD, RA, RC, RB, 3);