Lines Matching refs:scratch

149     } scratch;  in CRYPTO_ccm128_encrypt()  local
185 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
188 temp.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_encrypt()
189 temp.u[1] ^= scratch.u[1]; in CRYPTO_ccm128_encrypt()
192 ((u64_a1 *)out)[0] = scratch.u[0] ^ ((u64_a1 *)inp)[0]; in CRYPTO_ccm128_encrypt()
193 ((u64_a1 *)out)[1] = scratch.u[1] ^ ((u64_a1 *)inp)[1]; in CRYPTO_ccm128_encrypt()
204 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
206 out[i] = scratch.c[i] ^ inp[i]; in CRYPTO_ccm128_encrypt()
212 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
213 ctx->cmac.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_encrypt()
214 ctx->cmac.u[1] ^= scratch.u[1]; in CRYPTO_ccm128_encrypt()
233 } scratch; in CRYPTO_ccm128_decrypt() local
257 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_decrypt()
261 ctx->cmac.u[0] ^= (scratch.u[0] ^= temp.u[0]); in CRYPTO_ccm128_decrypt()
262 ctx->cmac.u[1] ^= (scratch.u[1] ^= temp.u[1]); in CRYPTO_ccm128_decrypt()
263 memcpy(out, scratch.c, 16); in CRYPTO_ccm128_decrypt()
266 = scratch.u[0] ^ ((u64_a1 *)inp)[0]); in CRYPTO_ccm128_decrypt()
268 = scratch.u[1] ^ ((u64_a1 *)inp)[1]); in CRYPTO_ccm128_decrypt()
278 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_decrypt()
280 ctx->cmac.c[i] ^= (out[i] = scratch.c[i] ^ inp[i]); in CRYPTO_ccm128_decrypt()
287 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_decrypt()
288 ctx->cmac.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_decrypt()
289 ctx->cmac.u[1] ^= scratch.u[1]; in CRYPTO_ccm128_decrypt()
322 } scratch; in CRYPTO_ccm128_encrypt_ccm64() local
357 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt_ccm64()
359 out[i] = scratch.c[i] ^ inp[i]; in CRYPTO_ccm128_encrypt_ccm64()
365 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt_ccm64()
366 ctx->cmac.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_encrypt_ccm64()
367 ctx->cmac.u[1] ^= scratch.u[1]; in CRYPTO_ccm128_encrypt_ccm64()
386 } scratch; in CRYPTO_ccm128_decrypt_ccm64() local
414 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_decrypt_ccm64()
416 ctx->cmac.c[i] ^= (out[i] = scratch.c[i] ^ inp[i]); in CRYPTO_ccm128_decrypt_ccm64()
423 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_decrypt_ccm64()
424 ctx->cmac.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_decrypt_ccm64()
425 ctx->cmac.u[1] ^= scratch.u[1]; in CRYPTO_ccm128_decrypt_ccm64()