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