Lines Matching refs:buf_count
288 int *buf_count, struct gcm_aes_ctx *ctx) in gcm_update_mac() argument
290 if (*buf_count > 0) { in gcm_update_mac()
291 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count); in gcm_update_mac()
293 memcpy(&buf[*buf_count], src, buf_added); in gcm_update_mac()
295 *buf_count += buf_added; in gcm_update_mac()
300 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) { in gcm_update_mac()
304 *buf_count ? buf : NULL); in gcm_update_mac()
308 *buf_count = 0; in gcm_update_mac()
313 *buf_count = count; in gcm_update_mac()
324 int buf_count = 0; in gcm_calculate_auth_mac() local
338 gcm_update_mac(dg, p, n, buf, &buf_count, ctx); in gcm_calculate_auth_mac()
346 if (buf_count) { in gcm_calculate_auth_mac()
347 memset(&buf[buf_count], 0, GHASH_BLOCK_SIZE - buf_count); in gcm_calculate_auth_mac()