diff options
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: dh.c,v 1.25 2003/09/18 13:02:21 miod Exp $"); | 26 | RCSID("$OpenBSD: dh.c,v 1.26 2003/12/16 15:51:54 markus Exp $"); |
27 | 27 | ||
28 | #include "xmalloc.h" | 28 | #include "xmalloc.h" |
29 | 29 | ||
@@ -279,11 +279,9 @@ int | |||
279 | dh_estimate(int bits) | 279 | dh_estimate(int bits) |
280 | { | 280 | { |
281 | 281 | ||
282 | if (bits < 64) | 282 | if (bits <= 128) |
283 | return (512); /* O(2**63) */ | ||
284 | if (bits < 128) | ||
285 | return (1024); /* O(2**86) */ | 283 | return (1024); /* O(2**86) */ |
286 | if (bits < 192) | 284 | if (bits <= 192) |
287 | return (2048); /* O(2**116) */ | 285 | return (2048); /* O(2**116) */ |
288 | return (4096); /* O(2**156) */ | 286 | return (4096); /* O(2**156) */ |
289 | } | 287 | } |