summaryrefslogtreecommitdiffhomepage
path: root/bn_mp_read_radix.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-01-11 03:11:15 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-01-11 03:11:15 +0000
commitea8cd283ebeebea68515abc40b7c5deadf0aa9c1 (patch)
tree6098d235b1fe34926c10f3c1b28b0e79252aee26 /bn_mp_read_radix.c
parent1c5fda515f96c27d4e3b732d887f418453f1cb14 (diff)
Update to LibTomMath 0.40
--HG-- branch : libtommath-orig extra : convert_revision : 1c2b7d389d0682caf980235dad97493e3206389c
Diffstat (limited to 'bn_mp_read_radix.c')
-rw-r--r--bn_mp_read_radix.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bn_mp_read_radix.c b/bn_mp_read_radix.c
index 1ec3937..d2119c1 100644
--- a/bn_mp_read_radix.c
+++ b/bn_mp_read_radix.c
@@ -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
*/
/* read a string [ASCII] in a given radix */
@@ -21,6 +21,9 @@ int mp_read_radix (mp_int * a, const char *str, int radix)
int y, res, neg;
char ch;
+ /* zero the digit bignum */
+ mp_zero(a);
+
/* make sure the radix is ok */
if (radix < 2 || radix > 64) {
return MP_VAL;
@@ -76,3 +79,7 @@ int mp_read_radix (mp_int * a, const char *str, int radix)
return MP_OKAY;
}
#endif
+
+/* $Source: /cvs/libtom/libtommath/bn_mp_read_radix.c,v $ */
+/* $Revision: 1.4 $ */
+/* $Date: 2006/03/31 14:18:44 $ */