Lines Matching +full:y +full:- +full:rc
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Twofish Cipher 8-way parallel algorithm (AVX/x86_64)
6 * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>
8 * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi>
13 #include "glue_helper-asm-avx.S"
15 .file "twofish-avx-x86_64-asm_64.S"
33 8-way AVX twofish
139 #define encround_tail(a, b, c, d, x, y, prerotate) \ argument
140 vpaddd x, y, x; \
144 vpaddd y, x, y; \
145 vpaddd y, RK2, y; \
147 vpslld $(32 - 1), c, c; \
149 vpxor d, y, d; \
151 #define decround_tail(a, b, c, d, x, y, prerotate) \ argument
152 vpaddd x, y, x; \
156 vpaddd y, x, y; \
157 vpaddd y, RK2, y; \
158 vpxor d, y, d; \
159 vpsrld $1, d, y; \
160 vpslld $(32 - 1), d, d; \
161 vpor d, y, d; \
165 vpsrld $(32 - 1), x, x; \
189 encrypt_round((2*n), RA, RB, RC, RD, preload_rgi, rotate_1l); \
190 encrypt_round(((2*n) + 1), RC, RD, RA, RB, preload_rgi, rotate_1l);
193 encrypt_round((2*n), RA, RB, RC, RD, preload_rgi, rotate_1l); \
194 encrypt_round(((2*n) + 1), RC, RD, RA, RB, dummy, dummy);
197 decrypt_round(((2*n) + 1), RC, RD, RA, RB, preload_rgi, rotate_1l); \
198 decrypt_round((2*n), RA, RB, RC, RD, preload_rgi, rotate_1l);
201 decrypt_round(((2*n) + 1), RC, RD, RA, RB, preload_rgi, rotate_1l); \
202 decrypt_round((2*n), RA, RB, RC, RD, dummy, dummy);