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