Lines Matching refs:datalen
247 int ossl_blake2s_update(BLAKE2S_CTX *c, const void *data, size_t datalen) in ossl_blake2s_update() argument
261 if (datalen > fill) { in ossl_blake2s_update()
267 datalen -= fill; in ossl_blake2s_update()
269 if (datalen > BLAKE2S_BLOCKBYTES) { in ossl_blake2s_update()
270 size_t stashlen = datalen % BLAKE2S_BLOCKBYTES; in ossl_blake2s_update()
276 datalen -= stashlen; in ossl_blake2s_update()
277 blake2s_compress(c, in, datalen); in ossl_blake2s_update()
278 in += datalen; in ossl_blake2s_update()
279 datalen = stashlen; in ossl_blake2s_update()
283 assert(datalen <= BLAKE2S_BLOCKBYTES); in ossl_blake2s_update()
285 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2s_update()
286 c->buflen += datalen; /* Be lazy, do not compress */ in ossl_blake2s_update()