Mercurial > dropbear
comparison bn_mp_to_unsigned_bin.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 /* store in unsigned [big endian] format */ | 18 /* store in unsigned [big endian] format */ |
19 int | 19 int mp_to_unsigned_bin (mp_int * a, unsigned char *b) |
20 mp_to_unsigned_bin (mp_int * a, unsigned char *b) | |
21 { | 20 { |
22 int x, res; | 21 int x, res; |
23 mp_int t; | 22 mp_int t; |
24 | 23 |
25 if ((res = mp_init_copy (&t, a)) != MP_OKAY) { | 24 if ((res = mp_init_copy (&t, a)) != MP_OKAY) { |