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

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: default avatarYu'an Wang <wangyuan46@huawei.com>
Reviewed-by: default avatarCheng Hu <hucheng.hu@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent ebb0518c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment