Lines Matching refs:src
124 const u8 *src, unsigned int size, in crypto_aegis128_ad() argument
127 if (AEGIS_ALIGNED(src)) { in crypto_aegis128_ad()
129 (const union aegis_block *)src; in crypto_aegis128_ad()
139 crypto_aegis128_update_u(state, src, do_simd); in crypto_aegis128_ad()
142 src += AEGIS_BLOCK_SIZE; in crypto_aegis128_ad()
148 const u8 *src, unsigned int size) in crypto_aegis128_wipe_chunk() argument
154 const u8 *src, unsigned int size) in crypto_aegis128_encrypt_chunk() argument
158 if (AEGIS_ALIGNED(src) && AEGIS_ALIGNED(dst)) { in crypto_aegis128_encrypt_chunk()
163 (const union aegis_block *)src; in crypto_aegis128_encrypt_chunk()
176 src += AEGIS_BLOCK_SIZE; in crypto_aegis128_encrypt_chunk()
185 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); in crypto_aegis128_encrypt_chunk()
187 crypto_aegis128_update_u(state, src, false); in crypto_aegis128_encrypt_chunk()
192 src += AEGIS_BLOCK_SIZE; in crypto_aegis128_encrypt_chunk()
199 memcpy(msg.bytes, src, size); in crypto_aegis128_encrypt_chunk()
215 const u8 *src, unsigned int size) in crypto_aegis128_decrypt_chunk() argument
219 if (AEGIS_ALIGNED(src) && AEGIS_ALIGNED(dst)) { in crypto_aegis128_decrypt_chunk()
224 (const union aegis_block *)src; in crypto_aegis128_decrypt_chunk()
237 src += AEGIS_BLOCK_SIZE; in crypto_aegis128_decrypt_chunk()
246 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); in crypto_aegis128_decrypt_chunk()
253 src += AEGIS_BLOCK_SIZE; in crypto_aegis128_decrypt_chunk()
260 memcpy(msg.bytes, src, size); in crypto_aegis128_decrypt_chunk()
290 const u8 *src = (const u8 *)mapped; in crypto_aegis128_process_ad() local
295 memcpy(buf.bytes + pos, src, fill); in crypto_aegis128_process_ad()
299 src += fill; in crypto_aegis128_process_ad()
302 crypto_aegis128_ad(state, src, left, do_simd); in crypto_aegis128_process_ad()
303 src += left & ~(AEGIS_BLOCK_SIZE - 1); in crypto_aegis128_process_ad()
307 memcpy(buf.bytes + pos, src, left); in crypto_aegis128_process_ad()
326 u8 *dst, const u8 *src, in crypto_aegis128_process_crypt() argument
337 crypt(state, walk->dst.virt.addr, walk->src.virt.addr, nbytes); in crypto_aegis128_process_crypt()
400 crypto_aegis128_process_ad(&state, req->src, req->assoclen, false); in crypto_aegis128_encrypt_generic()
421 scatterwalk_map_and_copy(tag.bytes, req->src, req->assoclen + cryptlen, in crypto_aegis128_decrypt_generic()
426 crypto_aegis128_process_ad(&state, req->src, req->assoclen, false); in crypto_aegis128_decrypt_generic()
464 crypto_aegis128_process_ad(&state, req->src, req->assoclen, true); in crypto_aegis128_encrypt_simd()
487 scatterwalk_map_and_copy(tag.bytes, req->src, req->assoclen + cryptlen, in crypto_aegis128_decrypt_simd()
492 crypto_aegis128_process_ad(&state, req->src, req->assoclen, true); in crypto_aegis128_decrypt_simd()