Home
last modified time | relevance | path

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

/illumos-gate/usr/src/common/crypto/modes/
H A Dctr.c240 ctr_init_ctx(ctr_ctx_t *ctr_ctx, ulong_t count, uint8_t *cb, in ctr_init_ctx() argument
259 ctr_ctx->ctr_lower_mask = htonll(lower_mask); in ctr_init_ctx()
260 ctr_ctx->ctr_upper_mask = htonll(upper_mask); in ctr_init_ctx()
262 copy_block(cb, (uchar_t *)ctr_ctx->ctr_cb); in ctr_init_ctx()
263 ctr_ctx->ctr_lastp = (uint8_t *)&ctr_ctx->ctr_cb[0]; in ctr_init_ctx()
266 cipher(ctr_ctx->ctr_keysched, (uint8_t *)ctr_ctx->ctr_cb, in ctr_init_ctx()
267 (uint8_t *)ctr_ctx->ctr_keystream); in ctr_init_ctx()
269 ctr_ctx->ctr_flags |= CTR_MODE; in ctr_init_ctx()
277 ctr_ctx_t *ctr_ctx; in ctr_alloc_ctx() local
280 if ((ctr_ctx = kmem_zalloc(sizeof (ctr_ctx_t), kmflag)) == NULL) in ctr_alloc_ctx()
[all …]
H A Dmodes.h132 typedef struct ctr_ctx { struct