aboutsummaryrefslogtreecommitdiffstats
path: root/mpi/mpi-internal.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-09-16Fix bug in mpi_tdiv_q_2exp.Werner Koch1-1/+1
* mpi/mpi-internal.h (MPN_COPY_INCR): Make it work. -- This bug has been with us since the version 0.0.0 of GnuPG. Fortunately it only affects an optimized code path which is rarely used in practice: If the shift size matches the size of a limb (i.e.. 32 or 64); this is is_prime in primegen.c. Over there the Rabin-Miller test may fail with a probability of 2^-31 (that is if the to be tested prime - 1 has the low 32 bits cleared). In practice the probability is even much less because we first do a Fermat test on the randomly generated candidates which sorts out the majority of composite numbers. The bug in MPN_COPY_INCR was found by Sven Bjorn. Signed-off-by: Werner Koch <[email protected]> (back ported from Libgcrypt commit 7f7a5ef59962ae1a819b5060f9b781469bfe27d5)
2007-10-23Switched to GPLv3.Werner Koch1-4/+2
Updated gettext.
2006-12-11Removed the use of g10defs.h.Werner Koch1-0/+32
This required some code cleanups and the introduction of a few accessor ducntions in mpi.
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2003-05-24* mpicoder.c, mpi-inline.h, mpi-inv.c, mpiutil.c, mpih-div.c,David Shaw1-6/+6
mpi-internal.h, mpi-scan.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
2002-06-29Update head to match stable 1.0David Shaw1-0/+259
2000-12-19Removed files from the HEAD revision, because they are now in anotherWerner Koch1-277/+0
repository
2000-11-14Some configuration changesWerner Koch1-0/+18
2000-07-17See ChangeLog: Mon Jul 17 16:35:47 CEST 2000 Werner KochWerner Koch1-1/+18
1999-07-02See ChangeLog: Fri Jul 2 11:45:54 CEST 1999 Werner KochWerner Koch1-0/+5
1998-12-23See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1-3/+3
1998-02-24Renamed to GNUPGV-0-2-8Werner Koch1-4/+4
1998-01-16added some trust model stuffWerner Koch1-1/+1
1997-12-23changed configuration stuff, replaced some Makefile.am by distfiles.Werner Koch1-0/+18
1997-11-27Improved prime number testWerner Koch1-0/+7
1997-11-26changed the dir layoutWerner Koch1-5/+19
1997-11-18initially checkinWerner Koch1-0/+198