Lines Matching defs:counter
147 uint64_t counter;
181 * Increment counter. Counter bits are confined
182 * to the bottom 32 bits of the counter block.
184 counter = ntohll(ctx->gcm_cb[1] & counter_mask);
185 counter = htonll(counter + 1);
186 counter &= counter_mask;
187 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter;
269 uint64_t counter;
278 * Increment counter.
280 counter = ntohll(ctx->gcm_cb[1] & counter_mask);
281 counter = htonll(counter + 1);
282 counter &= counter_mask;
283 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter;
292 /* XOR with counter block */
335 uint64_t counter;
340 * Increment counter.
343 counter = ntohll(ctx->gcm_cb[1] & counter_mask);
344 counter = htonll(counter + 1);
345 counter &= counter_mask;
346 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter;
362 /* XOR with counter block */
418 uint64_t counter;
446 * Increment counter.
449 counter = ntohll(ctx->gcm_cb[1] & counter_mask);
450 counter = htonll(counter + 1);
451 counter &= counter_mask;
452 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter;