Lines Matching +full:2 +full:- +full:way
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Glue Code for 3-way parallel assembler optimized version of Twofish
25 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher()
41 u128 ivs[2]; in twofish_dec_blk_cbc_3way()
51 u128_xor(&dst[2], &dst[2], &ivs[1]); in twofish_dec_blk_cbc_3way()
81 dst[2] = src[2]; in twofish_enc_blk_ctr_3way()
88 le128_to_be128(&ctrblks[2], iv); in twofish_enc_blk_ctr_3way()
96 .num_funcs = 2,
97 .fpu_blocks_limit = -1,
109 .num_funcs = 2,
110 .fpu_blocks_limit = -1,
122 .num_funcs = 2,
123 .fpu_blocks_limit = -1,
135 .num_funcs = 2,
136 .fpu_blocks_limit = -1,
175 .base.cra_driver_name = "ecb-twofish-3way",
187 .base.cra_driver_name = "cbc-twofish-3way",
200 .base.cra_driver_name = "ctr-twofish-3way",
225 * On Atom, twofish-3way is slower than original assembler in is_blacklisted_cpu()
226 * implementation. Twofish-3way trades off some performance in in is_blacklisted_cpu()
229 * more performance than was trade off, on out-of-order CPUs. in is_blacklisted_cpu()
238 * On Pentium 4, twofish-3way is slower than original assembler in is_blacklisted_cpu()
240 * left-shifts (which are really slow on P4) needed to store and in is_blacklisted_cpu()
257 "twofish-x86_64-3way: performance on this CPU " in init()
259 "twofish-x86_64-3way.\n"); in init()
260 return -ENODEV; in init()
276 MODULE_DESCRIPTION("Twofish Cipher Algorithm, 3-way parallel asm optimized");
278 MODULE_ALIAS_CRYPTO("twofish-asm");