Lines Matching refs:buflen
42 dctx->buflen = 0; in crypto_poly1305_init()
187 if (unlikely(dctx->buflen)) { in crypto_poly1305_update()
188 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
189 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update()
192 dctx->buflen += bytes; in crypto_poly1305_update()
194 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()
197 dctx->buflen = 0; in crypto_poly1305_update()
208 dctx->buflen = srclen; in crypto_poly1305_update()
273 if (unlikely(dctx->buflen)) { in crypto_poly1305_final()
274 dctx->buf[dctx->buflen++] = 1; in crypto_poly1305_final()
275 memset(dctx->buf + dctx->buflen, 0, in crypto_poly1305_final()
276 POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_final()