Lines Matching refs:tmp
77 union aegis_block tmp; in crypto_aegis128_update() local
80 tmp = state->blocks[AEGIS128_STATE_BLOCKS - 1]; in crypto_aegis128_update()
84 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis128_update()
161 union aegis_block tmp; in crypto_aegis128_encrypt_chunk() local
170 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
171 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
172 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
173 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
174 crypto_aegis_block_xor(&tmp, src_blk); in crypto_aegis128_encrypt_chunk()
178 *dst_blk = tmp; in crypto_aegis128_encrypt_chunk()
186 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
187 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
188 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
189 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
190 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); in crypto_aegis128_encrypt_chunk()
194 memcpy(dst, tmp.bytes, AEGIS_BLOCK_SIZE); in crypto_aegis128_encrypt_chunk()
206 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
207 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
208 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
209 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
213 crypto_aegis_block_xor(&msg, &tmp); in crypto_aegis128_encrypt_chunk()
222 union aegis_block tmp; in crypto_aegis128_decrypt_chunk() local
231 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
232 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
233 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
234 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
235 crypto_aegis_block_xor(&tmp, src_blk); in crypto_aegis128_decrypt_chunk()
237 crypto_aegis128_update_a(state, &tmp); in crypto_aegis128_decrypt_chunk()
239 *dst_blk = tmp; in crypto_aegis128_decrypt_chunk()
247 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
248 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
249 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
250 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
251 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); in crypto_aegis128_decrypt_chunk()
253 crypto_aegis128_update_a(state, &tmp); in crypto_aegis128_decrypt_chunk()
255 memcpy(dst, tmp.bytes, AEGIS_BLOCK_SIZE); in crypto_aegis128_decrypt_chunk()
267 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
268 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
269 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
270 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
271 crypto_aegis_block_xor(&msg, &tmp); in crypto_aegis128_decrypt_chunk()
354 union aegis_block tmp; in crypto_aegis128_final() local
357 tmp.words64[0] = cpu_to_le64(assocbits); in crypto_aegis128_final()
358 tmp.words64[1] = cpu_to_le64(cryptbits); in crypto_aegis128_final()
360 crypto_aegis_block_xor(&tmp, &state->blocks[3]); in crypto_aegis128_final()
363 crypto_aegis128_update_a(state, &tmp); in crypto_aegis128_final()