Lines Matching defs:buf_count
275 int *buf_count, struct gcm_aes_ctx *ctx)
277 if (*buf_count > 0) {
278 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count);
280 memcpy(&buf[*buf_count], src, buf_added);
282 *buf_count += buf_added;
287 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) {
291 *buf_count ? buf : NULL,
296 *buf_count = 0;
301 *buf_count = count;
312 int buf_count = 0;
326 gcm_update_mac(dg, p, n, buf, &buf_count, ctx);
334 if (buf_count) {
335 memset(&buf[buf_count], 0, GHASH_BLOCK_SIZE - buf_count);