]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wolfSSL: Use wc_ecc_forcezero_point() in non-FIPS builds
authorJuliusz Sosinowicz <juliusz@wolfssl.com>
Wed, 8 Mar 2023 17:18:48 +0000 (18:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 4 Nov 2023 16:18:25 +0000 (18:18 +0200)
Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
src/crypto/crypto_wolfssl.c

index 356a8abe5bb6b43f7d3fa4324ce0a1e50db7541e..dee462beff8a701bfccd7d088ef02c03d1bb6d49 100644 (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);
 }