mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 11:10:51 +02:00
Add missing ForceZero call for ML-DSA
This commit is contained in:
@@ -4128,6 +4128,10 @@ static int mldsa_expand_s_c(wc_Shake* shake256, byte* priv_seed, byte eta,
|
||||
s2 += MLDSA_N;
|
||||
}
|
||||
|
||||
/* seed holds a copy of the secret private seed (rho_prime) from which the
|
||||
* s1/s2 vectors are derived; zeroize it before return. */
|
||||
ForceZero(seed, sizeof(seed));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user