Lines Matching refs:srclen
35 const u8 *src, unsigned int srclen) in crypto_poly1305_setdesckey() argument
38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
41 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
44 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()
50 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()
54 return srclen; in crypto_poly1305_setdesckey()
58 unsigned int srclen) in poly1305_blocks() argument
63 datalen = crypto_poly1305_setdesckey(dctx, src, srclen); in poly1305_blocks()
64 src += srclen - datalen; in poly1305_blocks()
65 srclen = datalen; in poly1305_blocks()
69 srclen / POLY1305_BLOCK_SIZE, 1); in poly1305_blocks()
73 const u8 *src, unsigned int srclen) in crypto_poly1305_update() argument
79 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
82 srclen -= bytes; in crypto_poly1305_update()
92 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in crypto_poly1305_update()
93 poly1305_blocks(dctx, src, srclen); in crypto_poly1305_update()
94 src += srclen - (srclen % POLY1305_BLOCK_SIZE); in crypto_poly1305_update()
95 srclen %= POLY1305_BLOCK_SIZE; in crypto_poly1305_update()
98 if (unlikely(srclen)) { in crypto_poly1305_update()
99 dctx->buflen = srclen; in crypto_poly1305_update()
100 memcpy(dctx->buf, src, srclen); in crypto_poly1305_update()