Lines Matching refs:scratch

33     } tweak, scratch;  in CRYPTO_xts128_encrypt()  local
48 memcpy(scratch.c, inp, 16); in CRYPTO_xts128_encrypt()
49 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
50 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
52 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak.u[0]; in CRYPTO_xts128_encrypt()
53 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak.u[1]; in CRYPTO_xts128_encrypt()
55 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
57 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
58 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
59 memcpy(out, scratch.c, 16); in CRYPTO_xts128_encrypt()
61 ((u64_a1 *)out)[0] = scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
62 ((u64_a1 *)out)[1] = scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
95 out[i] = scratch.c[i]; in CRYPTO_xts128_encrypt()
96 scratch.c[i] = c; in CRYPTO_xts128_encrypt()
98 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
99 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
100 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
101 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
102 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
103 memcpy(out - 16, scratch.c, 16); in CRYPTO_xts128_encrypt()
131 memcpy(scratch.c, inp, 16); in CRYPTO_xts128_encrypt()
132 scratch.u[0] ^= tweak1.u[0]; in CRYPTO_xts128_encrypt()
133 scratch.u[1] ^= tweak1.u[1]; in CRYPTO_xts128_encrypt()
135 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak1.u[0]; in CRYPTO_xts128_encrypt()
136 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak1.u[1]; in CRYPTO_xts128_encrypt()
138 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
139 scratch.u[0] ^= tweak1.u[0]; in CRYPTO_xts128_encrypt()
140 scratch.u[1] ^= tweak1.u[1]; in CRYPTO_xts128_encrypt()
144 out[16 + i] = scratch.c[i]; in CRYPTO_xts128_encrypt()
145 scratch.c[i] = c; in CRYPTO_xts128_encrypt()
147 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
148 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
149 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); 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()
153 memcpy(out, scratch.c, 16); in CRYPTO_xts128_encrypt()
155 ((u64_a1 *)out)[0] = scratch.u[0] ^ tweak.u[0]; in CRYPTO_xts128_encrypt()
156 ((u64_a1 *)out)[1] = scratch.u[1] ^ tweak.u[1]; in CRYPTO_xts128_encrypt()