Lines Matching refs:buf_count
335 int *buf_count, struct gcm_aes_ctx *ctx) in gcm_update_mac() argument
337 if (*buf_count > 0) { in gcm_update_mac()
338 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count); in gcm_update_mac()
340 memcpy(&buf[*buf_count], src, buf_added); in gcm_update_mac()
342 *buf_count += buf_added; in gcm_update_mac()
347 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) { in gcm_update_mac()
351 *buf_count ? buf : NULL, in gcm_update_mac()
356 *buf_count = 0; in gcm_update_mac()
361 *buf_count = count; in gcm_update_mac()
372 int buf_count = 0; in gcm_calculate_auth_mac() local
386 gcm_update_mac(dg, p, n, buf, &buf_count, ctx); in gcm_calculate_auth_mac()
394 if (buf_count) { in gcm_calculate_auth_mac()
395 memset(&buf[buf_count], 0, GHASH_BLOCK_SIZE - buf_count); in gcm_calculate_auth_mac()