Lines Matching refs:buflen
42 dctx->buflen = 0; in crypto_poly1305_init()
175 if (unlikely(dctx->buflen)) { in crypto_poly1305_update()
176 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
177 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update()
180 dctx->buflen += bytes; in crypto_poly1305_update()
182 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()
185 dctx->buflen = 0; in crypto_poly1305_update()
196 dctx->buflen = srclen; in crypto_poly1305_update()
215 if (unlikely(dctx->buflen)) { in crypto_poly1305_final()
216 dctx->buf[dctx->buflen++] = 1; in crypto_poly1305_final()
217 memset(dctx->buf + dctx->buflen, 0, in crypto_poly1305_final()
218 POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_final()