summaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-08-23 10:02:08 +0200
committerWerner Koch <wk@gnupg.org>2002-08-23 10:02:08 +0200
commit277a9a3755b255173ba122d4f574f2b3400477b3 (patch)
treef155b30f54c6564dbc1085481a048f8bfd47da1a /cipher
parent* gpg.sgml: Clarify meaning of keyserver option include-revoked. (diff)
downloadgnupg2-277a9a3755b255173ba122d4f574f2b3400477b3.tar.xz
gnupg2-277a9a3755b255173ba122d4f574f2b3400477b3.zip
Include intl/ in the CVS again; otherwise we are not able to
re-recreate a distribution from CVS. Some minor other fixes.
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ChangeLog5
-rw-r--r--cipher/primegen.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 8b9306b8b..c150c4c99 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-20 Werner Koch <wk@gnupg.org>
+
+ * primegen.c (generate_elg_prime): Return all factors for mode 1.
+ Bug reported by Bob Mathews.
+
2002-08-12 Werner Koch <wk@gnupg.org>
* cipher.c: Include the DUMMY cipher only when the new ALLOW_DUMMY
diff --git a/cipher/primegen.c b/cipher/primegen.c
index bb7138a84..1f3095751 100644
--- a/cipher/primegen.c
+++ b/cipher/primegen.c
@@ -233,7 +233,7 @@ generate_elg_prime( int mode, unsigned pbits, unsigned qbits,
if( mode == 1 ) {
(*ret_factors)[i++] = mpi_copy( q_factor );
for(; i <= n; i++ )
- (*ret_factors)[i] = mpi_copy( factors[i] );
+ (*ret_factors)[i] = mpi_copy( factors[i-1] );
}
else {
for(; i < n; i++ )