Lines Matching refs:POLY1305_BLOCK_SIZE
56 src += POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
57 len -= POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
60 if (len >= POLY1305_BLOCK_SIZE) { in neon_poly1305_blocks()
65 src += POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
66 len -= POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
69 if (len < POLY1305_BLOCK_SIZE) in neon_poly1305_blocks()
73 len &= ~(POLY1305_BLOCK_SIZE - 1); in neon_poly1305_blocks()
85 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in neon_poly1305_do_update()
92 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in neon_poly1305_do_update()
94 POLY1305_BLOCK_SIZE, 1, false); in neon_poly1305_do_update()
99 if (likely(len >= POLY1305_BLOCK_SIZE)) { in neon_poly1305_do_update()
101 src += round_down(len, POLY1305_BLOCK_SIZE); in neon_poly1305_do_update()
102 len %= POLY1305_BLOCK_SIZE; in neon_poly1305_do_update()
129 u32 bytes = min(nbytes, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_update_arch()
136 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_arch()
137 poly1305_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 1); in poly1305_update_arch()
142 if (likely(nbytes >= POLY1305_BLOCK_SIZE)) { in poly1305_update_arch()
143 unsigned int len = round_down(nbytes, POLY1305_BLOCK_SIZE); in poly1305_update_arch()
160 nbytes %= POLY1305_BLOCK_SIZE; in poly1305_update_arch()
175 POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_final_arch()
176 poly1305_blocks(&dctx->h, dctx->buf, POLY1305_BLOCK_SIZE, 0); in poly1305_final_arch()
205 .base.cra_blocksize = POLY1305_BLOCK_SIZE,