Lines Matching full:blocks
32 union aegis_block blocks[AEGIS128_STATE_BLOCKS]; member
66 tmp = state->blocks[AEGIS128_STATE_BLOCKS - 1]; in crypto_aegis128_update()
68 crypto_aegis_aesenc(&state->blocks[i], &state->blocks[i - 1], in crypto_aegis128_update()
69 &state->blocks[i]); in crypto_aegis128_update()
70 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis128_update()
83 crypto_aegis_block_xor(&state->blocks[0], msg); in crypto_aegis128_update_a()
95 crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); in crypto_aegis128_update_u()
108 state->blocks[0] = key_iv; in crypto_aegis128_init()
109 state->blocks[1] = crypto_aegis_const[1]; in crypto_aegis128_init()
110 state->blocks[2] = crypto_aegis_const[0]; in crypto_aegis128_init()
111 state->blocks[3] = *key; in crypto_aegis128_init()
112 state->blocks[4] = *key; in crypto_aegis128_init()
114 crypto_aegis_block_xor(&state->blocks[3], &crypto_aegis_const[0]); in crypto_aegis128_init()
115 crypto_aegis_block_xor(&state->blocks[4], &crypto_aegis_const[1]); in crypto_aegis128_init()
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()
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()
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()
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()
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()
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()
358 crypto_aegis_block_xor(&tmp, &state->blocks[3]); in crypto_aegis128_final()
364 crypto_aegis_block_xor(tag_xor, &state->blocks[i]); in crypto_aegis128_final()