Lines Matching refs:buf_count
270 int *buf_count, struct gcm_aes_ctx *ctx) in gcm_update_mac() argument
272 if (*buf_count > 0) { in gcm_update_mac()
273 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count); in gcm_update_mac()
275 memcpy(&buf[*buf_count], src, buf_added); in gcm_update_mac()
277 *buf_count += buf_added; in gcm_update_mac()
282 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) { in gcm_update_mac()
286 *buf_count ? buf : NULL, in gcm_update_mac()
291 *buf_count = 0; in gcm_update_mac()
296 *buf_count = count; in gcm_update_mac()
306 int buf_count = 0; in gcm_calculate_auth_mac() local
320 gcm_update_mac(dg, p, n, buf, &buf_count, ctx); in gcm_calculate_auth_mac()
328 if (buf_count) { in gcm_calculate_auth_mac()
329 memset(&buf[buf_count], 0, GHASH_BLOCK_SIZE - buf_count); in gcm_calculate_auth_mac()