Lines Matching refs:AEGIS_BLOCK_SIZE
16 #define AEGIS_BLOCK_SIZE 16 macro
226 const int short_input = size < AEGIS_BLOCK_SIZE; in crypto_aegis128_encrypt_chunk_neon()
231 while (size >= AEGIS_BLOCK_SIZE) { in crypto_aegis128_encrypt_chunk_neon()
239 size -= AEGIS_BLOCK_SIZE; in crypto_aegis128_encrypt_chunk_neon()
240 src += AEGIS_BLOCK_SIZE; in crypto_aegis128_encrypt_chunk_neon()
241 dst += AEGIS_BLOCK_SIZE; in crypto_aegis128_encrypt_chunk_neon()
246 uint8_t buf[AEGIS_BLOCK_SIZE]; in crypto_aegis128_encrypt_chunk_neon()
252 in = out = memcpy(buf + AEGIS_BLOCK_SIZE - size, src, size); in crypto_aegis128_encrypt_chunk_neon()
254 m = vqtbl1q_u8(vld1q_u8(in + size - AEGIS_BLOCK_SIZE), in crypto_aegis128_encrypt_chunk_neon()
259 vst1q_u8(out + size - AEGIS_BLOCK_SIZE, in crypto_aegis128_encrypt_chunk_neon()
265 vst1q_u8(out - AEGIS_BLOCK_SIZE, msg); in crypto_aegis128_encrypt_chunk_neon()
275 const int short_input = size < AEGIS_BLOCK_SIZE; in crypto_aegis128_decrypt_chunk_neon()
280 while (size >= AEGIS_BLOCK_SIZE) { in crypto_aegis128_decrypt_chunk_neon()
285 size -= AEGIS_BLOCK_SIZE; in crypto_aegis128_decrypt_chunk_neon()
286 src += AEGIS_BLOCK_SIZE; in crypto_aegis128_decrypt_chunk_neon()
287 dst += AEGIS_BLOCK_SIZE; in crypto_aegis128_decrypt_chunk_neon()
292 uint8_t buf[AEGIS_BLOCK_SIZE]; in crypto_aegis128_decrypt_chunk_neon()
298 in = out = memcpy(buf + AEGIS_BLOCK_SIZE - size, src, size); in crypto_aegis128_decrypt_chunk_neon()
300 m = s ^ vqtbx1q_u8(s, vld1q_u8(in + size - AEGIS_BLOCK_SIZE), in crypto_aegis128_decrypt_chunk_neon()
305 vst1q_u8(out + size - AEGIS_BLOCK_SIZE, in crypto_aegis128_decrypt_chunk_neon()
311 vst1q_u8(out - AEGIS_BLOCK_SIZE, msg); in crypto_aegis128_decrypt_chunk_neon()