comparison bn_mp_to_signed_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 signed [big endian] format */ 18 /* store in signed [big endian] format */
19 int 19 int mp_to_signed_bin (mp_int * a, unsigned char *b)
20 mp_to_signed_bin (mp_int * a, unsigned char *b)
21 { 20 {
22 int res; 21 int res;
23 22
24 if ((res = mp_to_unsigned_bin (a, b + 1)) != MP_OKAY) { 23 if ((res = mp_to_unsigned_bin (a, b + 1)) != MP_OKAY) {
25 return res; 24 return res;