Lines Matching refs:srclen
93 const u8 *src, unsigned int srclen, nh_t nh_fn) in nhpoly1305_units() argument
100 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units()
110 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units()
120 srclen -= bytes; in nhpoly1305_units()
121 } while (srclen); in nhpoly1305_units()
155 const u8 *src, unsigned int srclen, in crypto_nhpoly1305_update_helper() argument
163 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper()
172 srclen -= bytes; in crypto_nhpoly1305_update_helper()
175 if (srclen >= NH_MESSAGE_UNIT) { in crypto_nhpoly1305_update_helper()
176 bytes = round_down(srclen, NH_MESSAGE_UNIT); in crypto_nhpoly1305_update_helper()
179 srclen -= bytes; in crypto_nhpoly1305_update_helper()
182 if (srclen) { in crypto_nhpoly1305_update_helper()
183 memcpy(state->buffer, src, srclen); in crypto_nhpoly1305_update_helper()
184 state->buflen = srclen; in crypto_nhpoly1305_update_helper()
191 const u8 *src, unsigned int srclen) in crypto_nhpoly1305_update() argument
193 return crypto_nhpoly1305_update_helper(desc, src, srclen, nh_generic); in crypto_nhpoly1305_update()