summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_exptmod.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-09-26 16:31:55 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-09-26 16:31:55 (GMT)
commit26f5dd27bff32dd05b568f2b116a04f01d96c05a (patch)
treee0c3d30912f2b67d620d935f3dead47ac4f3533d /libtommath/bn_mp_exptmod.c
parent163b211fb73a0d795aa73236805b5b97386dd4f3 (diff)
downloadtcl-26f5dd27bff32dd05b568f2b116a04f01d96c05a.zip
tcl-26f5dd27bff32dd05b568f2b116a04f01d96c05a.tar.gz
tcl-26f5dd27bff32dd05b568f2b116a04f01d96c05a.tar.bz2
Import of libtommath 0.36
Diffstat (limited to 'libtommath/bn_mp_exptmod.c')
-rw-r--r--libtommath/bn_mp_exptmod.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libtommath/bn_mp_exptmod.c b/libtommath/bn_mp_exptmod.c
index 7c4e2f8..f0b205b 100644
--- a/libtommath/bn_mp_exptmod.c
+++ b/libtommath/bn_mp_exptmod.c
@@ -66,7 +66,7 @@ int mp_exptmod (mp_int * G, mp_int * X, mp_int * P, mp_int * Y)
}
/* modified diminished radix reduction */
-#if defined(BN_MP_REDUCE_IS_2K_L_C) && defined(BN_MP_REDUCE_2K_L_C)
+#if defined(BN_MP_REDUCE_IS_2K_L_C) && defined(BN_MP_REDUCE_2K_L_C) && defined(BN_S_MP_EXPTMOD_C)
if (mp_reduce_is_2k_l(P) == MP_YES) {
return s_mp_exptmod(G, X, P, Y, 1);
}
@@ -106,3 +106,7 @@ int mp_exptmod (mp_int * G, mp_int * X, mp_int * P, mp_int * Y)
}
#endif
+
+/* $Source: /root/tcl/repos-to-convert/tcl/libtommath/bn_mp_exptmod.c,v $ */
+/* $Revision: 1.1.1.3 $ */
+/* $Date: 2005/09/26 16:31:56 $ */