• Home
  • Raw
  • Download

Lines Matching full:blocks

32 	union aegis_block blocks[AEGIS256_STATE_BLOCKS];  member
52 tmp = state->blocks[AEGIS256_STATE_BLOCKS - 1]; in crypto_aegis256_update()
54 crypto_aegis_aesenc(&state->blocks[i], &state->blocks[i - 1], in crypto_aegis256_update()
55 &state->blocks[i]); in crypto_aegis256_update()
56 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis256_update()
63 crypto_aegis_block_xor(&state->blocks[0], msg); in crypto_aegis256_update_a()
69 crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); in crypto_aegis256_update_u()
86 state->blocks[0] = key_iv[0]; in crypto_aegis256_init()
87 state->blocks[1] = key_iv[1]; in crypto_aegis256_init()
88 state->blocks[2] = crypto_aegis_const[1]; in crypto_aegis256_init()
89 state->blocks[3] = crypto_aegis_const[0]; in crypto_aegis256_init()
90 state->blocks[4] = key[0]; in crypto_aegis256_init()
91 state->blocks[5] = key[1]; in crypto_aegis256_init()
93 crypto_aegis_block_xor(&state->blocks[4], &crypto_aegis_const[0]); in crypto_aegis256_init()
94 crypto_aegis_block_xor(&state->blocks[5], &crypto_aegis_const[1]); in crypto_aegis256_init()
139 tmp = state->blocks[2]; in crypto_aegis256_encrypt_chunk()
140 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis256_encrypt_chunk()
141 crypto_aegis_block_xor(&tmp, &state->blocks[5]); in crypto_aegis256_encrypt_chunk()
142 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis256_encrypt_chunk()
143 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis256_encrypt_chunk()
156 tmp = state->blocks[2]; in crypto_aegis256_encrypt_chunk()
157 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis256_encrypt_chunk()
158 crypto_aegis_block_xor(&tmp, &state->blocks[5]); in crypto_aegis256_encrypt_chunk()
159 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis256_encrypt_chunk()
160 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis256_encrypt_chunk()
177 tmp = state->blocks[2]; in crypto_aegis256_encrypt_chunk()
178 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis256_encrypt_chunk()
179 crypto_aegis_block_xor(&tmp, &state->blocks[5]); in crypto_aegis256_encrypt_chunk()
180 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis256_encrypt_chunk()
181 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis256_encrypt_chunk()
203 tmp = state->blocks[2]; in crypto_aegis256_decrypt_chunk()
204 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis256_decrypt_chunk()
205 crypto_aegis_block_xor(&tmp, &state->blocks[5]); in crypto_aegis256_decrypt_chunk()
206 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis256_decrypt_chunk()
207 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis256_decrypt_chunk()
220 tmp = state->blocks[2]; in crypto_aegis256_decrypt_chunk()
221 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis256_decrypt_chunk()
222 crypto_aegis_block_xor(&tmp, &state->blocks[5]); in crypto_aegis256_decrypt_chunk()
223 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis256_decrypt_chunk()
224 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis256_decrypt_chunk()
241 tmp = state->blocks[2]; in crypto_aegis256_decrypt_chunk()
242 crypto_aegis_block_and(&tmp, &state->blocks[3]); in crypto_aegis256_decrypt_chunk()
243 crypto_aegis_block_xor(&tmp, &state->blocks[5]); in crypto_aegis256_decrypt_chunk()
244 crypto_aegis_block_xor(&tmp, &state->blocks[4]); in crypto_aegis256_decrypt_chunk()
245 crypto_aegis_block_xor(&tmp, &state->blocks[1]); in crypto_aegis256_decrypt_chunk()
335 crypto_aegis_block_xor(&tmp, &state->blocks[3]); in crypto_aegis256_final()
341 crypto_aegis_block_xor(tag_xor, &state->blocks[i]); in crypto_aegis256_final()