Searched refs:cbc_ctx (Results 1 – 5 of 5) sorted by relevance
/titanic_44/usr/src/common/crypto/modes/ |
H A D | cbc.c | 282 cbc_init_ctx(cbc_ctx_t *cbc_ctx, char *param, size_t param_len, in cbc_init_ctx() argument 297 copy_block((uchar_t *)param, cbc_ctx->cbc_iv); in cbc_init_ctx() 300 cbc_ctx->cbc_lastp = (uint8_t *)&cbc_ctx->cbc_iv[0]; in cbc_init_ctx() 301 cbc_ctx->cbc_flags |= CBC_MODE; in cbc_init_ctx() 309 cbc_ctx_t *cbc_ctx; in cbc_alloc_ctx() local 312 if ((cbc_ctx = kmem_zalloc(sizeof (cbc_ctx_t), kmflag)) == NULL) in cbc_alloc_ctx() 314 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in cbc_alloc_ctx() 318 cbc_ctx->cbc_flags = CBC_MODE; in cbc_alloc_ctx() 319 return (cbc_ctx); in cbc_alloc_ctx()
|
H A D | modes.h | 103 typedef struct cbc_ctx { struct
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softBlowfishCrypt.c | 491 cbc_ctx_t *cbc_ctx; in blowfish_cbc_ctx_init() local 493 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in blowfish_cbc_ctx_init() 496 cbc_ctx->cbc_keysched = key_sched; in blowfish_cbc_ctx_init() 498 (void) memcpy(&cbc_ctx->cbc_iv[0], ivec, BLOWFISH_BLOCK_LEN); in blowfish_cbc_ctx_init() 500 cbc_ctx->cbc_lastp = (uint8_t *)&(cbc_ctx->cbc_iv); in blowfish_cbc_ctx_init() 501 cbc_ctx->cbc_keysched_len = size; in blowfish_cbc_ctx_init() 502 cbc_ctx->cbc_flags |= CBC_MODE; in blowfish_cbc_ctx_init() 504 return (cbc_ctx); in blowfish_cbc_ctx_init()
|
H A D | softAESCrypt.c | 829 cbc_ctx_t *cbc_ctx; in aes_cbc_ctx_init() local 831 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in aes_cbc_ctx_init() 834 cbc_ctx->cbc_keysched = key_sched; in aes_cbc_ctx_init() 835 cbc_ctx->cbc_keysched_len = size; in aes_cbc_ctx_init() 837 (void) memcpy(&cbc_ctx->cbc_iv[0], ivec, AES_BLOCK_LEN); in aes_cbc_ctx_init() 839 cbc_ctx->cbc_lastp = (uint8_t *)cbc_ctx->cbc_iv; in aes_cbc_ctx_init() 840 cbc_ctx->cbc_flags |= CBC_MODE; in aes_cbc_ctx_init() 842 return (cbc_ctx); in aes_cbc_ctx_init()
|
H A D | softDESCrypt.c | 802 cbc_ctx_t *cbc_ctx; in des_cbc_ctx_init() local 804 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in des_cbc_ctx_init() 807 cbc_ctx->cbc_keysched = key_sched; in des_cbc_ctx_init() 809 (void) memcpy(&cbc_ctx->cbc_iv[0], ivec, DES_BLOCK_LEN); in des_cbc_ctx_init() 811 cbc_ctx->cbc_lastp = (uint8_t *)&cbc_ctx->cbc_iv[0]; in des_cbc_ctx_init() 812 cbc_ctx->cbc_keysched_len = size; in des_cbc_ctx_init() 814 cbc_ctx->cbc_flags |= CBC_MODE; in des_cbc_ctx_init() 816 cbc_ctx->cbc_flags |= CBC_MODE | DES3_STRENGTH; in des_cbc_ctx_init() 818 return (cbc_ctx); in des_cbc_ctx_init()
|