Lines Matching refs:srclen
78 const u8 *src, unsigned int srclen) in crypto_poly1305_p10_update() argument
84 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_p10_update()
87 srclen -= bytes; in crypto_poly1305_p10_update()
102 if (likely(srclen >= POLY1305_BLOCK_SIZE)) { in crypto_poly1305_p10_update()
103 bytes = round_down(srclen, POLY1305_BLOCK_SIZE); in crypto_poly1305_p10_update()
106 srclen -= used; in crypto_poly1305_p10_update()
109 if (crypto_simd_usable() && (srclen >= POLY1305_BLOCK_SIZE*4)) { in crypto_poly1305_p10_update()
111 poly1305_p10le_4blocks(&dctx->h, src, srclen); in crypto_poly1305_p10_update()
113 src += srclen - (srclen % (POLY1305_BLOCK_SIZE * 4)); in crypto_poly1305_p10_update()
114 srclen %= POLY1305_BLOCK_SIZE * 4; in crypto_poly1305_p10_update()
116 while (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_p10_update()
120 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_p10_update()
125 if (unlikely(srclen)) { in crypto_poly1305_p10_update()
126 dctx->buflen = srclen; in crypto_poly1305_p10_update()
127 memcpy(dctx->buf, src, srclen); in crypto_poly1305_p10_update()