Home
last modified time | relevance | path

Searched refs:cbc_ctx_t (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/common/crypto/modes/
H A Dmodes.h117 } cbc_ctx_t; typedef
247 cbc_ctx_t acu_cbc;
271 cbc_ctx_t bcu_cbc;
285 cbc_ctx_t dcu_cbc;
300 extern int cbc_encrypt_contiguous_blocks(cbc_ctx_t *, char *, size_t,
306 extern int cbc_decrypt_contiguous_blocks(cbc_ctx_t *, char *, size_t,
358 extern int cmac_mode_final(cbc_ctx_t *, crypto_data_t *,
362 extern int cbc_init_ctx(cbc_ctx_t *, char *, size_t, size_t,
365 extern int cmac_init_ctx(cbc_ctx_t *, size_t);
H A Dcbc.c49 cbc_encrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, in cbc_encrypt_contiguous_blocks()
186 cbc_decrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, in cbc_decrypt_contiguous_blocks()
299 cbc_init_ctx(cbc_ctx_t *cbc_ctx, char *param, size_t param_len, in cbc_init_ctx()
327 cbc_ctx_t *cbc_ctx; in cbc_cmac_alloc_ctx()
334 if ((cbc_ctx = kmem_zalloc(sizeof (cbc_ctx_t), kmflag)) == NULL) in cbc_cmac_alloc_ctx()
336 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in cbc_cmac_alloc_ctx()
372 cmac_init_ctx(cbc_ctx_t *cbc_ctx, size_t block_size) in cmac_init_ctx()
417 cmac_mode_final(cbc_ctx_t *cbc_ctx, crypto_data_t *out, in cmac_mode_final()
H A Dmodes.c190 kmem_free(common_ctx, sizeof (cbc_ctx_t)); in crypto_free_mode_ctx()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftBlowfishCrypt.c301 freezero(blowfish_ctx, sizeof (cbc_ctx_t)); in soft_blowfish_encrypt_common()
484 cbc_ctx_t *cbc_ctx; in blowfish_cbc_ctx_init()
486 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in blowfish_cbc_ctx_init()
H A DsoftAESCrypt.c213 rc = cmac_init_ctx((cbc_ctx_t *)aes_ctx, AES_BLOCK_LEN); in soft_aes_init_ctx()
217 rc = cbc_init_ctx((cbc_ctx_t *)aes_ctx, mech_p->pParameter, in soft_aes_init_ctx()
469 rc = cmac_mode_final((cbc_ctx_t *)aes_ctx, &out, in soft_aes_encrypt()
1248 rc = cmac_mode_final((cbc_ctx_t *)aes_ctx, &data, in soft_aes_encrypt_final()
1623 len = sizeof (cbc_ctx_t); in soft_aes_free_ctx()
H A DsoftDESCrypt.c792 cbc_ctx_t *cbc_ctx; in des_cbc_ctx_init()
794 if ((cbc_ctx = calloc(1, sizeof (cbc_ctx_t))) == NULL) in des_cbc_ctx_init()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Daes.c522 ret = cmac_mode_final((cbc_ctx_t *)aes_ctx, ciphertext, in aes_encrypt()
840 ret = cmac_mode_final((cbc_ctx_t *)aes_ctx, data, in aes_encrypt_final()
1085 ret = cmac_mode_final((cbc_ctx_t *)&aes_ctx, in aes_encrypt_atomic()
1370 rv = cbc_init_ctx((cbc_ctx_t *)aes_ctx, mechanism->cm_param, in aes_common_init_ctx()
1374 rv = cmac_init_ctx((cbc_ctx_t *)aes_ctx, AES_BLOCK_LEN); in aes_common_init_ctx()
H A Dblowfish.c854 rv = cbc_init_ctx((cbc_ctx_t *)blowfish_ctx, in blowfish_common_init_ctx()
/illumos-gate/usr/src/uts/common/des/
H A Ddes_crypt.c1144 rv = cbc_init_ctx((cbc_ctx_t *)des_ctx, mechanism->cm_param, in des_common_init_ctx()