Lines Matching +full:tx0 +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Twofish Cipher 3-way parallel algorithm (x86_64)
10 .file "twofish-x86_64-asm-3way.S"
22 3-way twofish
93 #define g1g2_3(ab, cd, Tx0, Tx1, Tx2, Tx3, Ty0, Ty1, Ty2, Ty3, x, y) \ argument
94 /* G1,1 && G2,1 */ \
95 do16bit_ror(32, mov, xor, Tx0, Tx1, RT0, x ## 0, ab ## 0, x ## 0); \
98 do16bit_ror(32, mov, xor, Tx0, Tx1, RT0, x ## 1, ab ## 1, x ## 1); \
99 do16bit_ror(48, mov, xor, Ty1, Ty2, RT0, y ## 1, ab ## 1, y ## 1); \
101 do16bit_ror(32, mov, xor, Tx0, Tx1, RT0, x ## 2, ab ## 2, x ## 2); \
109 do16bit_ror(32, xor, xor, Tx2, Tx3, RT0, RT1, ab ## 1, x ## 1); \
110 do16bit_ror(16, xor, xor, Ty3, Ty0, RT0, RT1, ab ## 1, y ## 1); \
111 swap_ab_with_cd(ab ## 1, cd ## 1, RT0); \
122 addl k+4*(2*(n)+1)(CTX), y ## d; \
124 roll $1, ab ## d; \
127 rorl $1, x ## d; \
134 addl k+4*(2*(n)+1)(CTX), y ## d; \
137 roll $1, ba ## d; \
140 rorl $1, y ## d; \
147 enc_round_end(ab ## 1, RX1, RY1, n); \
154 dec_round_end(ba ## 1, RX1, RY1, n); \
159 encrypt_round3(ab, cd, (n*2)+1);
162 decrypt_round3(ba, dc, (n*2)+1); \
179 movq 4*(4+(n))(in), xy ## 1; \
180 xorq w+4*m(CTX), xy ## 1; \
189 xorq w+4*m(CTX), xy ## 1; \
190 op ## q xy ## 1, 4*(4+(n))(out); \
241 encrypt_cycle3(RAB, CD, 1);
293 decrypt_cycle3(RAB, CD, 1);