Lines Matching refs:tweak
31 unsigned int nbytes, void *tweak);
35 unsigned int nbytes, void *tweak);
51 le128 tweak; in __speck128_xts_crypt() local
57 crypto_speck128_encrypt(&ctx->tweak_key, (u8 *)&tweak, walk.iv); in __speck128_xts_crypt()
71 dst, src, count, &tweak); in __speck128_xts_crypt()
79 while (nbytes >= sizeof(tweak)) { in __speck128_xts_crypt()
80 le128_xor((le128 *)dst, (const le128 *)src, &tweak); in __speck128_xts_crypt()
82 le128_xor((le128 *)dst, (const le128 *)dst, &tweak); in __speck128_xts_crypt()
83 gf128mul_x_ble((be128 *)&tweak, (const be128 *)&tweak); in __speck128_xts_crypt()
85 dst += sizeof(tweak); in __speck128_xts_crypt()
86 src += sizeof(tweak); in __speck128_xts_crypt()
87 nbytes -= sizeof(tweak); in __speck128_xts_crypt()
142 unsigned int nbytes, void *tweak);
146 unsigned int nbytes, void *tweak);
162 __le64 tweak; in __speck64_xts_crypt() local
168 crypto_speck64_encrypt(&ctx->tweak_key, (u8 *)&tweak, walk.iv); in __speck64_xts_crypt()
182 dst, src, count, &tweak); in __speck64_xts_crypt()
190 while (nbytes >= sizeof(tweak)) { in __speck64_xts_crypt()
191 *(__le64 *)dst = *(__le64 *)src ^ tweak; in __speck64_xts_crypt()
193 *(__le64 *)dst ^= tweak; in __speck64_xts_crypt()
194 tweak = cpu_to_le64((le64_to_cpu(tweak) << 1) ^ in __speck64_xts_crypt()
195 ((tweak & cpu_to_le64(1ULL << 63)) ? in __speck64_xts_crypt()
197 dst += sizeof(tweak); in __speck64_xts_crypt()
198 src += sizeof(tweak); in __speck64_xts_crypt()
199 nbytes -= sizeof(tweak); in __speck64_xts_crypt()