summaryrefslogtreecommitdiff
path: root/mpi/mpi-inv.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-01-24 13:28:35 +0000
committerWerner Koch <wk@gnupg.org>2002-01-24 13:28:35 +0000
commit0bcbc7ba80d41c8197cb1eee60c13801b276f99c (patch)
tree05e1836b72268f7862472e626a3da60a23c849d1 /mpi/mpi-inv.c
parent9acfa6d3b6c2d08b3bf1d76669aa8d64b880a75d (diff)
downloadlibgcrypt-0bcbc7ba80d41c8197cb1eee60c13801b276f99c.tar.gz
jnlib/
Replaced by a fresh copy from GnuPG (actually the NewPG development branch). Adjusted Makefile.am and jnlib-config.h accordingly. * logging.c (log_printf): Do not initialize ARG_PTR with 0, we don't know the correct type. Instead, run va_start and va_end unconditionally. Reported by Jose Carlos Garcia Sogo <jsogo@debian.org>. mpi/ * mpi-inv.c (_gcry_mpi_invm): Typo fixes, noted by Carlo Perassi.
Diffstat (limited to 'mpi/mpi-inv.c')
-rw-r--r--mpi/mpi-inv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpi/mpi-inv.c b/mpi/mpi-inv.c
index ab890a7a..99924b4a 100644
--- a/mpi/mpi-inv.c
+++ b/mpi/mpi-inv.c
@@ -77,8 +77,8 @@ _gcry_mpi_invm( MPI x, MPI a, MPI n )
mpi_free(u);
mpi_free(v);
#elif 0
- /* Extended Euclid's algorithm (See TAOPC Vol II, 4.5.2, Alg X)
- * modified according to Michael Penk's solution for Exercice 35 */
+ /* Extended Euclid's algorithm (See TAOCP Vol II, 4.5.2, Alg X)
+ * modified according to Michael Penk's solution for Exercise 35 */
/* FIXME: we can simplify this in most cases (see Knuth) */
MPI u, v, u1, u2, u3, v1, v2, v3, t1, t2, t3;
@@ -158,8 +158,8 @@ _gcry_mpi_invm( MPI x, MPI a, MPI n )
mpi_free(t2);
mpi_free(t3);
#else
- /* Extended Euclid's algorithm (See TAOPC Vol II, 4.5.2, Alg X)
- * modified according to Michael Penk's solution for Exercice 35
+ /* Extended Euclid's algorithm (See TAOCP Vol II, 4.5.2, Alg X)
+ * modified according to Michael Penk's solution for Exercise 35
* with further enhancement */
MPI u, v, u1, u2=NULL, u3, v1, v2=NULL, v3, t1, t2=NULL, t3;
unsigned k;