Lines Matching defs:scratch
76 } tweak, scratch;
91 memcpy(scratch.c, inp, 16);
92 scratch.u[0] ^= tweak.u[0];
93 scratch.u[1] ^= tweak.u[1];
95 scratch.u[0] = ((u64 *)inp)[0] ^ tweak.u[0];
96 scratch.u[1] = ((u64 *)inp)[1] ^ tweak.u[1];
98 (*ctx->block1) (scratch.c, scratch.c, ctx->key1);
100 scratch.u[0] ^= tweak.u[0];
101 scratch.u[1] ^= tweak.u[1];
102 memcpy(out, scratch.c, 16);
104 ((u64 *)out)[0] = scratch.u[0] ^= tweak.u[0];
105 ((u64 *)out)[1] = scratch.u[1] ^= tweak.u[1];
138 out[i] = scratch.c[i];
139 scratch.c[i] = c;
141 scratch.u[0] ^= tweak.u[0];
142 scratch.u[1] ^= tweak.u[1];
143 (*ctx->block1) (scratch.c, scratch.c, ctx->key1);
144 scratch.u[0] ^= tweak.u[0];
145 scratch.u[1] ^= tweak.u[1];
146 memcpy(out - 16, scratch.c, 16);
174 memcpy(scratch.c, inp, 16);
175 scratch.u[0] ^= tweak1.u[0];
176 scratch.u[1] ^= tweak1.u[1];
178 scratch.u[0] = ((u64 *)inp)[0] ^ tweak1.u[0];
179 scratch.u[1] = ((u64 *)inp)[1] ^ tweak1.u[1];
181 (*ctx->block1) (scratch.c, scratch.c, ctx->key1);
182 scratch.u[0] ^= tweak1.u[0];
183 scratch.u[1] ^= tweak1.u[1];
187 out[16 + i] = scratch.c[i];
188 scratch.c[i] = c;
190 scratch.u[0] ^= tweak.u[0];
191 scratch.u[1] ^= tweak.u[1];
192 (*ctx->block1) (scratch.c, scratch.c, ctx->key1);
194 scratch.u[0] ^= tweak.u[0];
195 scratch.u[1] ^= tweak.u[1];
196 memcpy(out, scratch.c, 16);
198 ((u64 *)out)[0] = scratch.u[0] ^ tweak.u[0];
199 ((u64 *)out)[1] = scratch.u[1] ^ tweak.u[1];