Lines Matching refs:buflen
46 dctx->buflen = 0; in crypto_poly1305_init()
185 if (unlikely(dctx->buflen)) { in crypto_poly1305_update()
186 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
187 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update()
190 dctx->buflen += bytes; in crypto_poly1305_update()
192 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()
195 dctx->buflen = 0; in crypto_poly1305_update()
206 dctx->buflen = srclen; in crypto_poly1305_update()
226 if (unlikely(dctx->buflen)) { in crypto_poly1305_final()
227 dctx->buf[dctx->buflen++] = 1; in crypto_poly1305_final()
228 memset(dctx->buf + dctx->buflen, 0, in crypto_poly1305_final()
229 POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_final()