You need to sign in or sign up before continuing.
hpre: optimize key process before free
driver inclusion category: bugfix bugzilla: NA CVE: NA In this patch, we try to optimize key process before free of hpre module. 1、for DH algorithm, we use para g to compute public key, para g is public, so we need not clear it before free. 2、for RSA algorithm, we should use memzero_explicit to clear prikey. It will be optimized, when memset follows free. 3、For standard RSA algorithm, we use one buf to store public and prikey, to consider performance, we just clear prikey buf. Signed-off-by: NYu'an Wang <wangyuan46@huawei.com> Reviewed-by: NCheng Hu <hucheng.hu@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录