Searched refs:des_ctx (Results 1 – 7 of 7) sorted by relevance
61 dca_request_t *des_ctx = ctx->cc_provider_private; in dca_3des() local82 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() local147 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 …]
439 des_ctx_t *des_ctx = NULL; in des_common_init() local454 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 …]
184 des_ctx_t *des_ctx; in soft_des_encrypt_common() local450 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() local779 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() local983 des_ctx = (des_ctx_t *)soft_des_ctx_encrypt->des_cbc; in soft_des_sign_verify_common()[all …]
180 soft_des_ctx_t *des_ctx; in soft_verify() local182 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() local373 des_ctx = (soft_des_ctx_t *)session_p->verify.context; in soft_verify_final()374 len = des_ctx->mac_len; in soft_verify_final()
866 des_ctx_t *des_ctx; in soft_crypt_cleanup() local869 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()
1052 des_ctx_t *des_ctx = ctx; in des_encrypt_contiguous_blocks() local1055 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() local1087 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()
271 typedef struct des_ctx { struct