Mercurial > dropbear
comparison bn_mp_read_radix.c @ 190:d8254fc979e9 libtommath-orig LTM_0.35
Initial import of libtommath 0.35
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 06 May 2005 08:59:30 +0000 |
parents | d29b64170cf0 |
children |
comparison
equal
deleted
inserted
replaced
142:d29b64170cf0 | 190:d8254fc979e9 |
---|---|
14 * | 14 * |
15 * Tom St Denis, [email protected], http://math.libtomcrypt.org | 15 * Tom St Denis, [email protected], http://math.libtomcrypt.org |
16 */ | 16 */ |
17 | 17 |
18 /* read a string [ASCII] in a given radix */ | 18 /* read a string [ASCII] in a given radix */ |
19 int mp_read_radix (mp_int * a, char *str, int radix) | 19 int mp_read_radix (mp_int * a, const char *str, int radix) |
20 { | 20 { |
21 int y, res, neg; | 21 int y, res, neg; |
22 char ch; | 22 char ch; |
23 | 23 |
24 /* make sure the radix is ok */ | 24 /* make sure the radix is ok */ |