Home
last modified time | relevance | path

Searched refs:des_ctx (Results 1 – 7 of 7) sorted by relevance

/titanic_50/usr/src/uts/common/crypto/io/
H A Ddca_3des.c61 dca_request_t *des_ctx = ctx->cc_provider_private; in dca_3des() local
82 des_ctx->dr_ctx.iv[0] = htonl(p[0]); in dca_3des()
83 des_ctx->dr_ctx.iv[1] = htonl(p[1]); in dca_3des()
86 des_ctx->dr_ctx.iv[0] = p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3]; in dca_3des()
87 des_ctx->dr_ctx.iv[1] = p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7]; in dca_3des()
145 dca_request_t *des_ctx = ctx->cc_provider_private; in dca_3desctxfree() local
147 if (des_ctx == NULL) in dca_3desctxfree()
150 des_ctx->dr_ctx.atomic = 0; in dca_3desctxfree()
151 des_ctx->dr_ctx.ctx_cm_type = 0; in dca_3desctxfree()
154 if (des_ctx->destroy) in dca_3desctxfree()
[all …]
/titanic_50/usr/src/uts/common/des/
H A Ddes_crypt.c439 des_ctx_t *des_ctx = NULL; in des_common_init() local
454 des_ctx = ecb_alloc_ctx(kmflag); in des_common_init()
463 if (des_ctx == NULL) in des_common_init()
464 des_ctx = cbc_alloc_ctx(kmflag); in des_common_init()
467 des_ctx = ecb_alloc_ctx(kmflag); in des_common_init()
476 if (des_ctx == NULL) in des_common_init()
477 des_ctx = cbc_alloc_ctx(kmflag); in des_common_init()
483 if ((rv = des_common_init_ctx(des_ctx, template, mechanism, key, in des_common_init()
485 crypto_free_mode_ctx(des_ctx); in des_common_init()
489 ctx->cc_provider_private = des_ctx; in des_common_init()
[all …]
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDESCrypt.c184 des_ctx_t *des_ctx; in soft_des_encrypt_common() local
450 des_ctx = (des_ctx_t *)soft_des_ctx->des_cbc; in soft_des_encrypt_common()
451 if (des_ctx != NULL) { in soft_des_encrypt_common()
452 bzero(des_ctx->dc_keysched, des_ctx->dc_keysched_len); in soft_des_encrypt_common()
500 des_ctx_t *des_ctx; in soft_des_decrypt_common() local
779 des_ctx = (des_ctx_t *)soft_des_ctx->des_cbc; in soft_des_decrypt_common()
780 if (des_ctx != NULL) { in soft_des_decrypt_common()
781 bzero(des_ctx->dc_keysched, des_ctx->dc_keysched_len); in soft_des_decrypt_common()
925 des_ctx_t *des_ctx = NULL; in soft_des_sign_verify_common() local
983 des_ctx = (des_ctx_t *)soft_des_ctx_encrypt->des_cbc; in soft_des_sign_verify_common()
[all …]
H A DsoftVerifyUtil.c180 soft_des_ctx_t *des_ctx; in soft_verify() local
182 des_ctx = (soft_des_ctx_t *)session_p->verify.context; in soft_verify()
183 len = des_ctx->mac_len; in soft_verify()
371 soft_des_ctx_t *des_ctx; in soft_verify_final() local
373 des_ctx = (soft_des_ctx_t *)session_p->verify.context; in soft_verify_final()
374 len = des_ctx->mac_len; in soft_verify_final()
H A DsoftEncryptUtil.c866 des_ctx_t *des_ctx; in soft_crypt_cleanup() local
869 des_ctx = (des_ctx_t *)soft_des_ctx->des_cbc; in soft_crypt_cleanup()
870 if (des_ctx != NULL) { in soft_crypt_cleanup()
871 bzero(des_ctx->dc_keysched, in soft_crypt_cleanup()
872 des_ctx->dc_keysched_len); in soft_crypt_cleanup()
/titanic_50/usr/src/common/crypto/des/
H A Ddes_impl.c1052 des_ctx_t *des_ctx = ctx; in des_encrypt_contiguous_blocks() local
1055 if (des_ctx->dc_flags & DES3_STRENGTH) { in des_encrypt_contiguous_blocks()
1056 if (des_ctx->dc_flags & CBC_MODE) { in des_encrypt_contiguous_blocks()
1065 if (des_ctx->dc_flags & CBC_MODE) { in des_encrypt_contiguous_blocks()
1084 des_ctx_t *des_ctx = ctx; in des_decrypt_contiguous_blocks() local
1087 if (des_ctx->dc_flags & DES3_STRENGTH) { in des_decrypt_contiguous_blocks()
1088 if (des_ctx->dc_flags & CBC_MODE) { in des_decrypt_contiguous_blocks()
1099 if (des_ctx->dc_flags & CBC_MODE) { in des_decrypt_contiguous_blocks()
/titanic_50/usr/src/common/crypto/modes/
H A Dmodes.h271 typedef struct des_ctx { struct