Lines Matching refs:datalen
259 int ossl_blake2b_update(BLAKE2B_CTX *c, const void *data, size_t datalen) in ossl_blake2b_update() argument
273 if (datalen > fill) { in ossl_blake2b_update()
279 datalen -= fill; in ossl_blake2b_update()
281 if (datalen > BLAKE2B_BLOCKBYTES) { in ossl_blake2b_update()
282 size_t stashlen = datalen % BLAKE2B_BLOCKBYTES; in ossl_blake2b_update()
288 datalen -= stashlen; in ossl_blake2b_update()
289 blake2b_compress(c, in, datalen); in ossl_blake2b_update()
290 in += datalen; in ossl_blake2b_update()
291 datalen = stashlen; in ossl_blake2b_update()
295 assert(datalen <= BLAKE2B_BLOCKBYTES); in ossl_blake2b_update()
297 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2b_update()
298 c->buflen += datalen; /* Be lazy, do not compress */ in ossl_blake2b_update()