Home
last modified time | relevance | path

Searched refs:cbc_ctx (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/common/crypto/modes/
H A Dcbc.c317 cbc_ctx->cbc_lastp = (uint8_t *)&cbc_ctx->cbc_iv[0]; in cbc_init_ctx()
318 cbc_ctx->cbc_flags |= CBC_MODE; in cbc_init_ctx()
319 cbc_ctx->max_remain = block_size; in cbc_init_ctx()
327 cbc_ctx_t *cbc_ctx; in cbc_cmac_alloc_ctx() local
340 cbc_ctx->cbc_flags = mode; in cbc_cmac_alloc_ctx()
341 return (cbc_ctx); in cbc_cmac_alloc_ctx()
386 cbc_ctx->cbc_iv[0] = 0; in cmac_init_ctx()
387 cbc_ctx->cbc_iv[1] = 0; in cmac_init_ctx()
389 cbc_ctx->cbc_lastp = (uint8_t *)&cbc_ctx->cbc_iv[0]; in cmac_init_ctx()
390 cbc_ctx->cbc_flags |= CMAC_MODE; in cmac_init_ctx()
[all …]
H A Dmodes.h113 typedef struct cbc_ctx { struct
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftBlowfishCrypt.c484 cbc_ctx_t *cbc_ctx; in blowfish_cbc_ctx_init() local
486 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in blowfish_cbc_ctx_init()
489 cbc_ctx->cbc_keysched = key_sched; in blowfish_cbc_ctx_init()
491 (void) memcpy(&cbc_ctx->cbc_iv[0], ivec, BLOWFISH_BLOCK_LEN); in blowfish_cbc_ctx_init()
493 cbc_ctx->cbc_lastp = (uint8_t *)&(cbc_ctx->cbc_iv); in blowfish_cbc_ctx_init()
494 cbc_ctx->cbc_keysched_len = size; in blowfish_cbc_ctx_init()
495 cbc_ctx->cbc_flags |= CBC_MODE; in blowfish_cbc_ctx_init()
497 return (cbc_ctx); in blowfish_cbc_ctx_init()
H A DsoftDESCrypt.c792 cbc_ctx_t *cbc_ctx; in des_cbc_ctx_init() local
794 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in des_cbc_ctx_init()
797 cbc_ctx->cbc_keysched = key_sched; in des_cbc_ctx_init()
799 (void) memcpy(&cbc_ctx->cbc_iv[0], ivec, DES_BLOCK_LEN); in des_cbc_ctx_init()
801 cbc_ctx->cbc_lastp = (uint8_t *)&cbc_ctx->cbc_iv[0]; in des_cbc_ctx_init()
802 cbc_ctx->cbc_keysched_len = size; in des_cbc_ctx_init()
804 cbc_ctx->cbc_flags |= CBC_MODE; in des_cbc_ctx_init()
806 cbc_ctx->cbc_flags |= CBC_MODE | DES3_STRENGTH; in des_cbc_ctx_init()
808 return (cbc_ctx); in des_cbc_ctx_init()