Lines Matching refs:scratch

33     } tweak, scratch;  in ossl_crypto_xts128gb_encrypt()  local
48 memcpy(scratch.c, inp, 16); in ossl_crypto_xts128gb_encrypt()
49 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
50 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
52 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
53 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
55 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in ossl_crypto_xts128gb_encrypt()
57 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
58 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
59 memcpy(out, scratch.c, 16); in ossl_crypto_xts128gb_encrypt()
61 ((u64_a1 *)out)[0] = scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
62 ((u64_a1 *)out)[1] = scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
114 out[i] = scratch.c[i]; in ossl_crypto_xts128gb_encrypt()
115 scratch.c[i] = c; in ossl_crypto_xts128gb_encrypt()
117 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
118 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
119 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in ossl_crypto_xts128gb_encrypt()
120 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
121 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
122 memcpy(out - 16, scratch.c, 16); in ossl_crypto_xts128gb_encrypt()
169 memcpy(scratch.c, inp, 16); in ossl_crypto_xts128gb_encrypt()
170 scratch.u[0] ^= tweak1.u[0]; in ossl_crypto_xts128gb_encrypt()
171 scratch.u[1] ^= tweak1.u[1]; in ossl_crypto_xts128gb_encrypt()
173 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak1.u[0]; in ossl_crypto_xts128gb_encrypt()
174 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak1.u[1]; in ossl_crypto_xts128gb_encrypt()
176 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in ossl_crypto_xts128gb_encrypt()
177 scratch.u[0] ^= tweak1.u[0]; in ossl_crypto_xts128gb_encrypt()
178 scratch.u[1] ^= tweak1.u[1]; in ossl_crypto_xts128gb_encrypt()
182 out[16 + i] = scratch.c[i]; in ossl_crypto_xts128gb_encrypt()
183 scratch.c[i] = c; in ossl_crypto_xts128gb_encrypt()
185 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
186 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
187 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in ossl_crypto_xts128gb_encrypt()
189 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
190 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
191 memcpy(out, scratch.c, 16); in ossl_crypto_xts128gb_encrypt()
193 ((u64_a1 *)out)[0] = scratch.u[0] ^ tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
194 ((u64_a1 *)out)[1] = scratch.u[1] ^ tweak.u[1]; in ossl_crypto_xts128gb_encrypt()