Lines Matching refs:tweak
299 uint8_t tweak[16] = { }; in sm4_crypt_xts() local
306 sm4_one_round(ctx_ek->sk, iv, tweak); in sm4_crypt_xts()
312 xor_128(input, tweak, ct); in sm4_crypt_xts()
314 xor_128(ct, tweak, output); in sm4_crypt_xts()
316 xts_multi(tweak, tweak); in sm4_crypt_xts()
319 sm4_one_round(ctx_dk->sk, tweak, iv); in sm4_crypt_xts()
333 xor_128(ct, tweak, ct); in sm4_crypt_xts()
335 xor_128(ct, tweak, ct); in sm4_crypt_xts()
338 xts_multi(tweak, tweak1); in sm4_crypt_xts()
347 xor_128(ct, tweak, ct); in sm4_crypt_xts()
349 xor_128(ct, tweak, output); in sm4_crypt_xts()