Lines Matching refs:buflen
149 state->buflen = 0; in crypto_nhpoly1305_init()
163 if (state->buflen) { in crypto_nhpoly1305_update_helper()
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()
167 if (state->buflen < NH_MESSAGE_UNIT) in crypto_nhpoly1305_update_helper()
171 state->buflen = 0; in crypto_nhpoly1305_update_helper()
185 state->buflen = srclen; in crypto_nhpoly1305_update_helper()
203 if (state->buflen) { in crypto_nhpoly1305_final_helper()
204 memset(&state->buffer[state->buflen], 0, in crypto_nhpoly1305_final_helper()
205 NH_MESSAGE_UNIT - state->buflen); in crypto_nhpoly1305_final_helper()