wolfSSL: Use wc_ecc_forcezero_point() in non-FIPS builds

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
This commit is contained in:
Juliusz Sosinowicz 2023-03-08 18:18:48 +01:00 committed by Jouni Malinen
parent de38571b86
commit 378bef3697

View file

@ -1642,9 +1642,13 @@ void crypto_ec_point_deinit(struct crypto_ec_point *p, int clear)
return;
if (clear) {
#ifdef CONFIG_FIPS
mp_forcezero(point->x);
mp_forcezero(point->y);
mp_forcezero(point->z);
#else /* CONFIG_FIPS */
wc_ecc_forcezero_point(point);
#endif /* CONFIG_FIPS */
}
wc_ecc_del_point(point);
}