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_mp_add_d.c'

#
#
# patch "bn_mp_add_d.c"
#  from [d6830e293314b416b519fede793966d4ecbfde57]
#    to [a9a93d171db95284326e1803d70cd16d5be92ac8]
#
============================================================
--- bn_mp_add_d.c	d6830e293314b416b519fede793966d4ecbfde57
+++ bn_mp_add_d.c	a9a93d171db95284326e1803d70cd16d5be92ac8
@@ -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
  */

 /* single digit addition */
@@ -40,6 +40,9 @@ mp_add_d (mp_int * a, mp_digit b, mp_int
      /* fix sign  */
      a->sign = c->sign = MP_NEG;

+     /* clamp */
+     mp_clamp(c);
+
      return res;
   }

@@ -103,3 +106,7 @@ mp_add_d (mp_int * a, mp_digit b, mp_int
 }

 #endif
+
+/* $Source: /cvs/libtom/libtommath/bn_mp_add_d.c,v $ */
+/* $Revision: 1.4 $ */
+/* $Date: 2006/03/31 14:18:44 $ */