Zero stack variable with DSA nonce
Thanks to Falko Strenzke for bringing this to our attention. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1882)
This commit is contained in:
parent
513d76f495
commit
e5e71f2857
1 changed files with 1 additions and 0 deletions
|
@ -253,5 +253,6 @@ int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,
|
|||
|
||||
err:
|
||||
OPENSSL_free(k_bytes);
|
||||
OPENSSL_cleanse(private_bytes, sizeof(private_bytes));
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue