• Home
  • Raw
  • Download

Lines Matching full:blocks

32 	union aegis_block blocks[AEGIS128_STATE_BLOCKS];  member
52 tmp = state->blocks[AEGIS128_STATE_BLOCKS - 1]; in crypto_aegis128_update()
54 crypto_aegis_aesenc(&state->blocks[i], &state->blocks[i - 1], in crypto_aegis128_update()
55 &state->blocks[i]); in crypto_aegis128_update()
56 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis128_update()
63 crypto_aegis_block_xor(&state->blocks[0], msg); in crypto_aegis128_update_a()
69 crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); in crypto_aegis128_update_u()
82 state->blocks[0] = key_iv; in crypto_aegis128_init()
83 state->blocks[1] = crypto_aegis_const[1]; in crypto_aegis128_init()
84 state->blocks[2] = crypto_aegis_const[0]; in crypto_aegis128_init()
85 state->blocks[3] = *key; in crypto_aegis128_init()
86 state->blocks[4] = *key; in crypto_aegis128_init()
88 crypto_aegis_block_xor(&state->blocks[3], &crypto_aegis_const[0]); in crypto_aegis128_init()
89 crypto_aegis_block_xor(&state->blocks[4], &crypto_aegis_const[1]); in crypto_aegis128_init()
132 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
133 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
134 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
135 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
148 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
149 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
150 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
151 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
168 tmp = state->blocks[2]; in crypto_aegis128_encrypt_chunk()
169 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_encrypt_chunk()
170 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_encrypt_chunk()
171 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_encrypt_chunk()
193 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
194 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
195 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
196 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
209 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
210 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
211 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
212 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
229 tmp = state->blocks[2]; in crypto_aegis128_decrypt_chunk()
230 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis128_decrypt_chunk()
231 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis128_decrypt_chunk()
232 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis128_decrypt_chunk()
322 crypto_aegis_block_xor(&tmp, &state->blocks[3]); in crypto_aegis128_final()
328 crypto_aegis_block_xor(tag_xor, &state->blocks[i]); in crypto_aegis128_final()