Lines Matching refs:bytes
97 unsigned int bytes; in nhpoly1305_units() local
101 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units()
102 nh_fn(key->nh_key, src, bytes, state->nh_hash); in nhpoly1305_units()
103 state->nh_remaining = NH_MESSAGE_BYTES - bytes; in nhpoly1305_units()
111 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units()
112 nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash); in nhpoly1305_units()
116 state->nh_remaining -= bytes; in nhpoly1305_units()
120 src += bytes; in nhpoly1305_units()
121 srclen -= bytes; in nhpoly1305_units()
161 unsigned int bytes; in crypto_nhpoly1305_update_helper() local
164 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper()
165 memcpy(&state->buffer[state->buflen], src, bytes); in crypto_nhpoly1305_update_helper()
166 state->buflen += bytes; in crypto_nhpoly1305_update_helper()
172 src += bytes; in crypto_nhpoly1305_update_helper()
173 srclen -= bytes; in crypto_nhpoly1305_update_helper()
177 bytes = round_down(srclen, NH_MESSAGE_UNIT); in crypto_nhpoly1305_update_helper()
178 nhpoly1305_units(state, key, src, bytes, nh_fn); in crypto_nhpoly1305_update_helper()
179 src += bytes; in crypto_nhpoly1305_update_helper()
180 srclen -= bytes; in crypto_nhpoly1305_update_helper()