Lines Matching refs:tmp
63 union aegis_block tmp; in crypto_aegis128_update() local
66 tmp = state->blocks[AEGIS128_STATE_BLOCKS - 1]; in crypto_aegis128_update()
70 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis128_update()
156 union aegis_block tmp; in crypto_aegis128_encrypt_chunk() local
165 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
166 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
167 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
168 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
169 crypto_aegis_block_xor(&tmp, src_blk); in crypto_aegis128_encrypt_chunk()
173 *dst_blk = tmp; in crypto_aegis128_encrypt_chunk()
181 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
182 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
183 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
184 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
185 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); in crypto_aegis128_encrypt_chunk()
189 memcpy(dst, tmp.bytes, AEGIS_BLOCK_SIZE); in crypto_aegis128_encrypt_chunk()
201 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
202 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
203 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
204 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
208 crypto_aegis_block_xor(&msg, &tmp); in crypto_aegis128_encrypt_chunk()
217 union aegis_block tmp; in crypto_aegis128_decrypt_chunk() local
226 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
227 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
228 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
229 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
230 crypto_aegis_block_xor(&tmp, src_blk); in crypto_aegis128_decrypt_chunk()
232 crypto_aegis128_update_a(state, &tmp, false); in crypto_aegis128_decrypt_chunk()
234 *dst_blk = tmp; in crypto_aegis128_decrypt_chunk()
242 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
243 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
244 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
245 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
246 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); in crypto_aegis128_decrypt_chunk()
248 crypto_aegis128_update_a(state, &tmp, false); in crypto_aegis128_decrypt_chunk()
250 memcpy(dst, tmp.bytes, AEGIS_BLOCK_SIZE); in crypto_aegis128_decrypt_chunk()
262 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
263 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
264 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
265 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
266 crypto_aegis_block_xor(&msg, &tmp); in crypto_aegis128_decrypt_chunk()
351 union aegis_block tmp; in crypto_aegis128_final() local
354 tmp.words64[0] = cpu_to_le64(assocbits); in crypto_aegis128_final()
355 tmp.words64[1] = cpu_to_le64(cryptbits); in crypto_aegis128_final()
357 crypto_aegis_block_xor(&tmp, &state->blocks[3]); in crypto_aegis128_final()
360 crypto_aegis128_update_a(state, &tmp, false); in crypto_aegis128_final()