Lines Matching refs:bytes
96 unsigned int bytes; in nhpoly1305_units() local
100 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units()
101 nh_fn(key->nh_key, src, bytes, state->nh_hash); in nhpoly1305_units()
102 state->nh_remaining = NH_MESSAGE_BYTES - bytes; in nhpoly1305_units()
110 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units()
111 nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash); in nhpoly1305_units()
115 state->nh_remaining -= bytes; in nhpoly1305_units()
119 src += bytes; in nhpoly1305_units()
120 srclen -= bytes; in nhpoly1305_units()
160 unsigned int bytes; in crypto_nhpoly1305_update_helper() local
163 bytes = min(srclen, (int)NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_update_helper()
164 memcpy(&state->buffer[state->buflen], src, bytes); in crypto_nhpoly1305_update_helper()
165 state->buflen += bytes; in crypto_nhpoly1305_update_helper()
171 src += bytes; in crypto_nhpoly1305_update_helper()
172 srclen -= bytes; in crypto_nhpoly1305_update_helper()
176 bytes = round_down(srclen, NH_MESSAGE_UNIT); in crypto_nhpoly1305_update_helper()
177 nhpoly1305_units(state, key, src, bytes, nh_fn); in crypto_nhpoly1305_update_helper()
178 src += bytes; in crypto_nhpoly1305_update_helper()
179 srclen -= bytes; in crypto_nhpoly1305_update_helper()