diff options
author | lloyd <[email protected]> | 2010-05-28 14:24:44 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-05-28 14:24:44 +0000 |
commit | 6d0ee25e9464015e44601d87f48e253d99834b1f (patch) | |
tree | 3969a33ac914a4904b6019df20d2433edc11be71 | |
parent | 7c5877d0e2712b9c1bd24e8190f3ca3e433e3570 (diff) |
For DSA groups, use 160 bit q for all p less than or equal to 1024 bits
-rw-r--r-- | doc/log.txt | 1 | ||||
-rw-r--r-- | src/pubkey/dl_group/dl_group.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/log.txt b/doc/log.txt index d5721d807..01b29354a 100644 --- a/doc/log.txt +++ b/doc/log.txt @@ -1,5 +1,6 @@ * 1.8.9, ????-??-?? + - Fix bug that prevented creation of DSA groups under 1024 bits - Fix crash in GMP_Engine if library is shutdown and reinitialized - Work around problem with recent binutils in x86-64 SHA-1 - Add Win32 installer support diff --git a/src/pubkey/dl_group/dl_group.cpp b/src/pubkey/dl_group/dl_group.cpp index 81c5d5e1d..d871fc643 100644 --- a/src/pubkey/dl_group/dl_group.cpp +++ b/src/pubkey/dl_group/dl_group.cpp @@ -72,7 +72,7 @@ DL_Group::DL_Group(RandomNumberGenerator& rng, } else { - qbits = qbits ? qbits : ((pbits == 1024) ? 160 : 256); + qbits = qbits ? qbits : ((pbits <= 1024) ? 160 : 256); generate_dsa_primes(rng, global_state().algorithm_factory(), p, q, pbits, qbits); |