diff options
author | Bodo Möller <bodo@openssl.org> | 1999-08-09 12:59:10 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-08-09 12:59:10 +0000 |
commit | 385be6eb209fc242a7e62b711d29df523ee1ca93 (patch) | |
tree | 8574b658cb08df8ef12ad357b2e1e4451575d335 /ssl/ssltest.c | |
parent | d91e201e968313edf64f26938716a2126e29c17f (diff) |
Provide fixed seed for parameter generation to speed up -dhe1024.
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r-- | ssl/ssltest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 90570f4bee..23664a69d1 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -315,6 +315,7 @@ bad: if (dhe1024) { DSA *dsa; + unsigned char seed[20]; if (verbose) { @@ -322,7 +323,8 @@ bad: fflush(stdout); } - dsa = DSA_generate_parameters(1024, NULL, 0, NULL, NULL, 0, NULL); + memcpy(seed, "Random String no. 12", 20); + dsa = DSA_generate_parameters(1024, seed, 20, NULL, NULL, 0, NULL); dh = DSA_dup_DH(dsa); DSA_free(dsa); /* important: SSL_OP_SINGLE_DH_USE to avoid small subgroup attacks */ |