Commit f5e7330f authored by Yu'an Wang's avatar Yu'an Wang Committed by Yang Yingliang
Browse files

sec: Overall optimization of sec code



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

1. we delete sec_usr_if.h, then move the define of sec hardware structure
into sec_crypto.h and normalize two structure types.
2. In sec_main.c, we remove fusion_limit/fusion_time, because this part of
logic is not used in the end. We also optimize the logic of debugfs without
judging some return codes, because this does not affect the driver loading.
Probe flow is also be optimized, including add sec_iommu_used_check, modify
sec_probe_init, realize sec_qm_pre_init and so on.
3. In sec.h, we define structure of sec_ctx, which defines queue/cipher/
request .etc relatives.
4. In sec_crypto.c,we encapsulate independent interfaces, such as init/
uninit/map/unmap/callback/alloc resource/free resource/encrypt/decrypt/
filling hardware descriptor/set key .etc, which removes fusion logic and is
easy to expand algorithm. Meanwhile, we remove DES algorithm support,
because of its weak key.

Signed-off-by: default avatarYu'an Wang <wangyuan46@huawei.com>
Reviewed-by: default avatarCheng Hu <hucheng.hu@huawei.com>
Reviewed-by: default avatarGuangwei Zhou <zhouguangwei5@huawei.com>
Reviewed-by: default avatarYe Kai <yekai13@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 402bbb5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment