wolfSSL: Use wc_ecc_forcezero_point() in non-FIPS builds
Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
This commit is contained in:
parent
de38571b86
commit
378bef3697
1 changed files with 4 additions and 0 deletions
|
@ -1642,9 +1642,13 @@ void crypto_ec_point_deinit(struct crypto_ec_point *p, int clear)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (clear) {
|
if (clear) {
|
||||||
|
#ifdef CONFIG_FIPS
|
||||||
mp_forcezero(point->x);
|
mp_forcezero(point->x);
|
||||||
mp_forcezero(point->y);
|
mp_forcezero(point->y);
|
||||||
mp_forcezero(point->z);
|
mp_forcezero(point->z);
|
||||||
|
#else /* CONFIG_FIPS */
|
||||||
|
wc_ecc_forcezero_point(point);
|
||||||
|
#endif /* CONFIG_FIPS */
|
||||||
}
|
}
|
||||||
wc_ecc_del_point(point);
|
wc_ecc_del_point(point);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue