Lines Matching refs:buflen
39 dctx->buflen = 0; in poly1305_init_arch()
47 dctx->buflen = 0; in arm_poly1305_init()
88 if (unlikely(dctx->buflen)) { in arm_poly1305_do_update()
89 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in arm_poly1305_do_update()
91 memcpy(dctx->buf + dctx->buflen, src, bytes); in arm_poly1305_do_update()
94 dctx->buflen += bytes; in arm_poly1305_do_update()
96 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in arm_poly1305_do_update()
99 dctx->buflen = 0; in arm_poly1305_do_update()
110 dctx->buflen = len; in arm_poly1305_do_update()
145 if (unlikely(dctx->buflen)) { in poly1305_update_arch()
146 u32 bytes = min(nbytes, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_update_arch()
148 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_update_arch()
151 dctx->buflen += bytes; in poly1305_update_arch()
153 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_arch()
156 dctx->buflen = 0; in poly1305_update_arch()
182 dctx->buflen = nbytes; in poly1305_update_arch()
190 if (unlikely(dctx->buflen)) { in poly1305_final_arch()
191 dctx->buf[dctx->buflen++] = 1; in poly1305_final_arch()
192 memset(dctx->buf + dctx->buflen, 0, in poly1305_final_arch()
193 POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_final_arch()