• Home
  • Raw
  • Download

Lines Matching full:blocks

34 	union aegis_block blocks[AEGIS128L_CHUNK_BLOCKS];  member
39 union aegis_block blocks[AEGIS128L_STATE_BLOCKS]; member
59 tmp = state->blocks[AEGIS128L_STATE_BLOCKS - 1]; in crypto_aegis128l_update()
61 crypto_aegis_aesenc(&state->blocks[i], &state->blocks[i - 1], in crypto_aegis128l_update()
62 &state->blocks[i]); in crypto_aegis128l_update()
63 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis128l_update()
70 crypto_aegis_block_xor(&state->blocks[0], &msg->blocks[0]); in crypto_aegis128l_update_a()
71 crypto_aegis_block_xor(&state->blocks[4], &msg->blocks[1]); in crypto_aegis128l_update_a()
78 crypto_xor(state->blocks[0].bytes, msg + 0 * AEGIS_BLOCK_SIZE, in crypto_aegis128l_update_u()
80 crypto_xor(state->blocks[4].bytes, msg + 1 * AEGIS_BLOCK_SIZE, in crypto_aegis128l_update_u()
92 memcpy(chunk.blocks[0].bytes, iv, AEGIS_BLOCK_SIZE); in crypto_aegis128l_init()
93 chunk.blocks[1] = *key; in crypto_aegis128l_init()
96 crypto_aegis_block_xor(&key_iv, &chunk.blocks[0]); in crypto_aegis128l_init()
98 state->blocks[0] = key_iv; in crypto_aegis128l_init()
99 state->blocks[1] = crypto_aegis_const[1]; in crypto_aegis128l_init()
100 state->blocks[2] = crypto_aegis_const[0]; in crypto_aegis128l_init()
101 state->blocks[3] = crypto_aegis_const[1]; in crypto_aegis128l_init()
102 state->blocks[4] = key_iv; in crypto_aegis128l_init()
103 state->blocks[5] = *key; in crypto_aegis128l_init()
104 state->blocks[6] = *key; in crypto_aegis128l_init()
105 state->blocks[7] = *key; in crypto_aegis128l_init()
107 crypto_aegis_block_xor(&state->blocks[5], &crypto_aegis_const[0]); in crypto_aegis128l_init()
108 crypto_aegis_block_xor(&state->blocks[6], &crypto_aegis_const[1]); in crypto_aegis128l_init()
109 crypto_aegis_block_xor(&state->blocks[7], &crypto_aegis_const[0]); in crypto_aegis128l_init()
143 union aegis_block *tmp0 = &tmp.blocks[0]; in crypto_aegis128l_encrypt_chunk()
144 union aegis_block *tmp1 = &tmp.blocks[1]; in crypto_aegis128l_encrypt_chunk()
153 *tmp0 = state->blocks[2]; in crypto_aegis128l_encrypt_chunk()
154 crypto_aegis_block_and(tmp0, &state->blocks[3]); in crypto_aegis128l_encrypt_chunk()
155 crypto_aegis_block_xor(tmp0, &state->blocks[6]); in crypto_aegis128l_encrypt_chunk()
156 crypto_aegis_block_xor(tmp0, &state->blocks[1]); in crypto_aegis128l_encrypt_chunk()
157 crypto_aegis_block_xor(tmp0, &src_blk->blocks[0]); in crypto_aegis128l_encrypt_chunk()
159 *tmp1 = state->blocks[6]; in crypto_aegis128l_encrypt_chunk()
160 crypto_aegis_block_and(tmp1, &state->blocks[7]); in crypto_aegis128l_encrypt_chunk()
161 crypto_aegis_block_xor(tmp1, &state->blocks[5]); in crypto_aegis128l_encrypt_chunk()
162 crypto_aegis_block_xor(tmp1, &state->blocks[2]); in crypto_aegis128l_encrypt_chunk()
163 crypto_aegis_block_xor(tmp1, &src_blk->blocks[1]); in crypto_aegis128l_encrypt_chunk()
175 *tmp0 = state->blocks[2]; in crypto_aegis128l_encrypt_chunk()
176 crypto_aegis_block_and(tmp0, &state->blocks[3]); in crypto_aegis128l_encrypt_chunk()
177 crypto_aegis_block_xor(tmp0, &state->blocks[6]); in crypto_aegis128l_encrypt_chunk()
178 crypto_aegis_block_xor(tmp0, &state->blocks[1]); in crypto_aegis128l_encrypt_chunk()
182 *tmp1 = state->blocks[6]; in crypto_aegis128l_encrypt_chunk()
183 crypto_aegis_block_and(tmp1, &state->blocks[7]); in crypto_aegis128l_encrypt_chunk()
184 crypto_aegis_block_xor(tmp1, &state->blocks[5]); in crypto_aegis128l_encrypt_chunk()
185 crypto_aegis_block_xor(tmp1, &state->blocks[2]); in crypto_aegis128l_encrypt_chunk()
203 *tmp0 = state->blocks[2]; in crypto_aegis128l_encrypt_chunk()
204 crypto_aegis_block_and(tmp0, &state->blocks[3]); in crypto_aegis128l_encrypt_chunk()
205 crypto_aegis_block_xor(tmp0, &state->blocks[6]); in crypto_aegis128l_encrypt_chunk()
206 crypto_aegis_block_xor(tmp0, &state->blocks[1]); in crypto_aegis128l_encrypt_chunk()
208 *tmp1 = state->blocks[6]; in crypto_aegis128l_encrypt_chunk()
209 crypto_aegis_block_and(tmp1, &state->blocks[7]); in crypto_aegis128l_encrypt_chunk()
210 crypto_aegis_block_xor(tmp1, &state->blocks[5]); in crypto_aegis128l_encrypt_chunk()
211 crypto_aegis_block_xor(tmp1, &state->blocks[2]); in crypto_aegis128l_encrypt_chunk()
215 crypto_aegis_block_xor(&msg.blocks[0], tmp0); in crypto_aegis128l_encrypt_chunk()
216 crypto_aegis_block_xor(&msg.blocks[1], tmp1); in crypto_aegis128l_encrypt_chunk()
226 union aegis_block *tmp0 = &tmp.blocks[0]; in crypto_aegis128l_decrypt_chunk()
227 union aegis_block *tmp1 = &tmp.blocks[1]; in crypto_aegis128l_decrypt_chunk()
236 *tmp0 = state->blocks[2]; in crypto_aegis128l_decrypt_chunk()
237 crypto_aegis_block_and(tmp0, &state->blocks[3]); in crypto_aegis128l_decrypt_chunk()
238 crypto_aegis_block_xor(tmp0, &state->blocks[6]); in crypto_aegis128l_decrypt_chunk()
239 crypto_aegis_block_xor(tmp0, &state->blocks[1]); in crypto_aegis128l_decrypt_chunk()
240 crypto_aegis_block_xor(tmp0, &src_blk->blocks[0]); in crypto_aegis128l_decrypt_chunk()
242 *tmp1 = state->blocks[6]; in crypto_aegis128l_decrypt_chunk()
243 crypto_aegis_block_and(tmp1, &state->blocks[7]); in crypto_aegis128l_decrypt_chunk()
244 crypto_aegis_block_xor(tmp1, &state->blocks[5]); in crypto_aegis128l_decrypt_chunk()
245 crypto_aegis_block_xor(tmp1, &state->blocks[2]); in crypto_aegis128l_decrypt_chunk()
246 crypto_aegis_block_xor(tmp1, &src_blk->blocks[1]); in crypto_aegis128l_decrypt_chunk()
258 *tmp0 = state->blocks[2]; in crypto_aegis128l_decrypt_chunk()
259 crypto_aegis_block_and(tmp0, &state->blocks[3]); in crypto_aegis128l_decrypt_chunk()
260 crypto_aegis_block_xor(tmp0, &state->blocks[6]); in crypto_aegis128l_decrypt_chunk()
261 crypto_aegis_block_xor(tmp0, &state->blocks[1]); in crypto_aegis128l_decrypt_chunk()
265 *tmp1 = state->blocks[6]; in crypto_aegis128l_decrypt_chunk()
266 crypto_aegis_block_and(tmp1, &state->blocks[7]); in crypto_aegis128l_decrypt_chunk()
267 crypto_aegis_block_xor(tmp1, &state->blocks[5]); in crypto_aegis128l_decrypt_chunk()
268 crypto_aegis_block_xor(tmp1, &state->blocks[2]); in crypto_aegis128l_decrypt_chunk()
286 *tmp0 = state->blocks[2]; in crypto_aegis128l_decrypt_chunk()
287 crypto_aegis_block_and(tmp0, &state->blocks[3]); in crypto_aegis128l_decrypt_chunk()
288 crypto_aegis_block_xor(tmp0, &state->blocks[6]); in crypto_aegis128l_decrypt_chunk()
289 crypto_aegis_block_xor(tmp0, &state->blocks[1]); in crypto_aegis128l_decrypt_chunk()
290 crypto_aegis_block_xor(&msg.blocks[0], tmp0); in crypto_aegis128l_decrypt_chunk()
292 *tmp1 = state->blocks[6]; in crypto_aegis128l_decrypt_chunk()
293 crypto_aegis_block_and(tmp1, &state->blocks[7]); in crypto_aegis128l_decrypt_chunk()
294 crypto_aegis_block_xor(tmp1, &state->blocks[5]); in crypto_aegis128l_decrypt_chunk()
295 crypto_aegis_block_xor(tmp1, &state->blocks[2]); in crypto_aegis128l_decrypt_chunk()
296 crypto_aegis_block_xor(&msg.blocks[1], tmp1); in crypto_aegis128l_decrypt_chunk()
382 tmp.blocks[0].words64[0] = cpu_to_le64(assocbits); in crypto_aegis128l_final()
383 tmp.blocks[0].words64[1] = cpu_to_le64(cryptbits); in crypto_aegis128l_final()
385 crypto_aegis_block_xor(&tmp.blocks[0], &state->blocks[2]); in crypto_aegis128l_final()
387 tmp.blocks[1] = tmp.blocks[0]; in crypto_aegis128l_final()
392 crypto_aegis_block_xor(tag_xor, &state->blocks[i]); in crypto_aegis128l_final()