• Home
  • Raw
  • Download

Lines Matching refs:tweak

37     } tweak, scratch;  in CRYPTO_xts128_encrypt()  local
43 memcpy(tweak.c, iv, 16); in CRYPTO_xts128_encrypt()
45 (*ctx->block2) (tweak.c, tweak.c, ctx->key2); in CRYPTO_xts128_encrypt()
53 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
54 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
56 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak.u[0]; in CRYPTO_xts128_encrypt()
57 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak.u[1]; in CRYPTO_xts128_encrypt()
61 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
62 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
65 ((u64_a1 *)out)[0] = scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
66 ((u64_a1 *)out)[1] = scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
78 res = 0x87 & (((int)tweak.d[3]) >> 31); in CRYPTO_xts128_encrypt()
79 carry = (unsigned int)(tweak.u[0] >> 63); in CRYPTO_xts128_encrypt()
80 tweak.u[0] = (tweak.u[0] << 1) ^ res; in CRYPTO_xts128_encrypt()
81 tweak.u[1] = (tweak.u[1] << 1) | carry; in CRYPTO_xts128_encrypt()
89 c += ((size_t)tweak.c[i]) << 1; in CRYPTO_xts128_encrypt()
90 tweak.c[i] = (u8)c; in CRYPTO_xts128_encrypt()
93 tweak.c[0] ^= (u8)(0x87 & (0 - c)); in CRYPTO_xts128_encrypt()
102 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
103 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
105 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
106 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
117 res = 0x87 & (((int)tweak.d[3]) >> 31); in CRYPTO_xts128_encrypt()
118 carry = (unsigned int)(tweak.u[0] >> 63); in CRYPTO_xts128_encrypt()
119 tweak1.u[0] = (tweak.u[0] << 1) ^ res; in CRYPTO_xts128_encrypt()
120 tweak1.u[1] = (tweak.u[1] << 1) | carry; in CRYPTO_xts128_encrypt()
128 c += ((size_t)tweak.c[i]) << 1; in CRYPTO_xts128_encrypt()
151 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
152 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
155 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
156 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
159 ((u64_a1 *)out)[0] = scratch.u[0] ^ tweak.u[0]; in CRYPTO_xts128_encrypt()
160 ((u64_a1 *)out)[1] = scratch.u[1] ^ tweak.u[1]; in CRYPTO_xts128_encrypt()