Home
last modified time | relevance | path

Searched refs:counter_mask (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/common/crypto/modes/
H A Dgcm.c148 uint64_t counter_mask = ntohll(0x00000000ffffffffULL); in gcm_mode_encrypt_contiguous_blocks() local
184 counter = ntohll(ctx->gcm_cb[1] & counter_mask); in gcm_mode_encrypt_contiguous_blocks()
186 counter &= counter_mask; in gcm_mode_encrypt_contiguous_blocks()
187 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter; in gcm_mode_encrypt_contiguous_blocks()
257 uint64_t counter_mask = ntohll(0x00000000ffffffffULL); in gcm_encrypt_final() local
280 counter = ntohll(ctx->gcm_cb[1] & counter_mask); in gcm_encrypt_final()
282 counter &= counter_mask; in gcm_encrypt_final()
283 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter; in gcm_encrypt_final()
336 uint64_t counter_mask = ntohll(0x00000000ffffffffULL); in gcm_decrypt_incomplete_block() local
343 counter = ntohll(ctx->gcm_cb[1] & counter_mask); in gcm_decrypt_incomplete_block()
[all …]
/titanic_44/usr/src/uts/intel/pcbe/
H A Dcore_pcbe.c1454 uint64_t counter_mask; in core_pcbe_sample() local
1470 counter_mask = mask_gpc; in core_pcbe_sample()
1472 counter_mask = mask_ffc; in core_pcbe_sample()
1474 curpic = curpic & counter_mask; in core_pcbe_sample()
1479 *daddr += counter_mask - (cfg->core_rawpic - curpic) + in core_pcbe_sample()
1482 cfg->core_rawpic = *daddr & counter_mask; in core_pcbe_sample()