mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 18:20:51 +02:00
Fix F381 to harden wc_MakeDsaKey
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ int wc_MakeDsaKey(WC_RNG *rng, DsaKey *dsa)
|
||||
dsa->type = DSA_PRIVATE;
|
||||
|
||||
if (err != MP_OKAY) {
|
||||
mp_clear(&dsa->x);
|
||||
mp_forcezero(&dsa->x);
|
||||
mp_clear(&dsa->y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user