Lines Matching refs:ct
301 uint8_t ct[16] = { }; in sm4_crypt_xts() local
312 xor_128(input, tweak, ct); in sm4_crypt_xts()
313 sm4_one_round(ctx->sk, ct, ct); in sm4_crypt_xts()
314 xor_128(ct, tweak, output); in sm4_crypt_xts()
327 memcpy(ct, output - 16, 16); in sm4_crypt_xts()
329 output[i] = ct[i]; in sm4_crypt_xts()
330 ct[i] = input[i]; in sm4_crypt_xts()
333 xor_128(ct, tweak, ct); in sm4_crypt_xts()
334 sm4_one_round(ctx->sk, ct, ct); in sm4_crypt_xts()
335 xor_128(ct, tweak, ct); in sm4_crypt_xts()
336 memcpy(output - 16, ct, 16); in sm4_crypt_xts()
339 xor_128(input, tweak1, ct); in sm4_crypt_xts()
340 sm4_one_round(ctx->sk, ct, ct); in sm4_crypt_xts()
341 xor_128(ct, tweak1, ct); in sm4_crypt_xts()
344 output[16 + i] = ct[i]; in sm4_crypt_xts()
345 ct[i] = input[16 + i]; in sm4_crypt_xts()
347 xor_128(ct, tweak, ct); in sm4_crypt_xts()
348 sm4_one_round(ctx->sk, ct, ct); in sm4_crypt_xts()
349 xor_128(ct, tweak, output); in sm4_crypt_xts()