Lines Matching defs:buf_count
422 int *buf_count, struct gcm_key *ctx)
424 if (*buf_count > 0) {
425 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count);
427 memcpy(&buf[*buf_count], src, buf_added);
429 *buf_count += buf_added;
434 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) {
438 *buf_count ? buf : NULL);
442 *buf_count = 0;
447 *buf_count = count;
457 int buf_count = 0;
471 gcm_update_mac(dg, p, n, buf, &buf_count, ctx);
484 if (buf_count) {
485 memset(&buf[buf_count], 0, GHASH_BLOCK_SIZE - buf_count);