Lines Matching refs:buflen
35 dctx->buflen = 0; in poly1305_init_arch()
43 dctx->buflen = 0; in neon_poly1305_init()
84 if (unlikely(dctx->buflen)) { in neon_poly1305_do_update()
85 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in neon_poly1305_do_update()
87 memcpy(dctx->buf + dctx->buflen, src, bytes); in neon_poly1305_do_update()
90 dctx->buflen += bytes; in neon_poly1305_do_update()
92 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in neon_poly1305_do_update()
95 dctx->buflen = 0; in neon_poly1305_do_update()
106 dctx->buflen = len; in neon_poly1305_do_update()
128 if (unlikely(dctx->buflen)) { in poly1305_update_arch()
129 u32 bytes = min(nbytes, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_update_arch()
131 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
134 dctx->buflen += bytes; in poly1305_update_arch()
136 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_arch()
138 dctx->buflen = 0; in poly1305_update_arch()
164 dctx->buflen = nbytes; in poly1305_update_arch()
172 if (unlikely(dctx->buflen)) { in poly1305_final_arch()
173 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
174 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
175 POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_final_arch()