diff options
author | Ismo Puustinen <ismo.puustinen@intel.com> | 2015-09-18 16:07:23 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-09-29 12:48:43 -0400 |
commit | 6f997dc36504d67d1339ceb6bce4ecba673d8568 (patch) | |
tree | 8afa3fd3d721bac1b82fbb743184fdc092b12b91 /crypto/dsa | |
parent | 21b538d616b388fa0ce64ef54da3504253895cf8 (diff) |
GH367: use random data if seed too short.
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'crypto/dsa')
-rw-r--r-- | crypto/dsa/dsa_gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dsa/dsa_gen.c b/crypto/dsa/dsa_gen.c index 5a328aaab5..9d3b59e047 100644 --- a/crypto/dsa/dsa_gen.c +++ b/crypto/dsa/dsa_gen.c @@ -203,7 +203,7 @@ int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits, if (!BN_GENCB_call(cb, 0, m++)) goto err; - if (!seed_len) { + if (!seed_len || !seed_in) { if (RAND_pseudo_bytes(seed, qsize) < 0) goto err; seed_is_random = 1; |