Lines Matching refs:msg
74 const union aegis_block *msg, in crypto_aegis128_update_a() argument
78 crypto_aegis128_update_simd(state, msg); in crypto_aegis128_update_a()
83 crypto_aegis_block_xor(&state->blocks[0], msg); in crypto_aegis128_update_a()
86 static void crypto_aegis128_update_u(struct aegis_state *state, const void *msg, in crypto_aegis128_update_u() argument
90 crypto_aegis128_update_simd(state, msg); in crypto_aegis128_update_u()
95 crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); in crypto_aegis128_update_u()
198 union aegis_block msg = {}; in crypto_aegis128_encrypt_chunk() local
199 memcpy(msg.bytes, src, size); in crypto_aegis128_encrypt_chunk()
206 crypto_aegis128_update_a(state, &msg, false); in crypto_aegis128_encrypt_chunk()
208 crypto_aegis_block_xor(&msg, &tmp); in crypto_aegis128_encrypt_chunk()
210 memcpy(dst, msg.bytes, size); in crypto_aegis128_encrypt_chunk()
259 union aegis_block msg = {}; in crypto_aegis128_decrypt_chunk() local
260 memcpy(msg.bytes, src, size); in crypto_aegis128_decrypt_chunk()
266 crypto_aegis_block_xor(&msg, &tmp); in crypto_aegis128_decrypt_chunk()
268 memset(msg.bytes + size, 0, AEGIS_BLOCK_SIZE - size); in crypto_aegis128_decrypt_chunk()
270 crypto_aegis128_update_a(state, &msg, false); in crypto_aegis128_decrypt_chunk()
272 memcpy(dst, msg.bytes, size); in crypto_aegis128_decrypt_chunk()