The unified diff between revisions [2b4b13ac..] and [1c2b7d38..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'bn_fast_s_mp_mul_digs.c'
#
#
# patch "bn_fast_s_mp_mul_digs.c"
# from [9a92ee7590332a1db78b9d37171680e6b87e1670]
# to [8c7ec5242443c6bbdfe90b6421c6e1351dd775b3]
#
============================================================
--- bn_fast_s_mp_mul_digs.c 9a92ee7590332a1db78b9d37171680e6b87e1670
+++ bn_fast_s_mp_mul_digs.c 8c7ec5242443c6bbdfe90b6421c6e1351dd775b3
@@ -12,7 +12,7 @@
* The library is free for all purposes without any express
* guarantee it works.
*
- * Tom St Denis, tomstdenis@iahu.ca, http://math.libtomcrypt.org
+ * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.com
*/
/* Fast (comba) multiplier
@@ -70,6 +70,7 @@ int fast_s_mp_mul_digs (mp_int * a, mp_i
/* execute loop */
for (iz = 0; iz < iy; ++iz) {
_W += ((mp_word)*tmpx++)*((mp_word)*tmpy--);
+
}
/* store term */
@@ -77,11 +78,8 @@ int fast_s_mp_mul_digs (mp_int * a, mp_i
/* make next carry */
_W = _W >> ((mp_word)DIGIT_BIT);
- }
+ }
- /* store final carry */
- W[ix] = (mp_digit)(_W & MP_MASK);
-
/* setup dest */
olduse = c->used;
c->used = pa;
@@ -103,3 +101,7 @@ int fast_s_mp_mul_digs (mp_int * a, mp_i
return MP_OKAY;
}
#endif
+
+/* $Source: /cvs/libtom/libtommath/bn_fast_s_mp_mul_digs.c,v $ */
+/* $Revision: 1.7 $ */
+/* $Date: 2006/03/31 14:18:44 $ */