comparison libtommath/mtest/mpi.h @ 1436:60fc6476e044

Update to libtommath v1.0
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 22:37:14 +0800
parents 5ff8218bcee9
children
comparison
equal deleted inserted replaced
1435:f849a5ca2efc 1436:60fc6476e044
4 by Michael J. Fromberger <[email protected]> 4 by Michael J. Fromberger <[email protected]>
5 Copyright (C) 1998 Michael J. Fromberger, All Rights Reserved 5 Copyright (C) 1998 Michael J. Fromberger, All Rights Reserved
6 6
7 Arbitrary precision integer arithmetic library 7 Arbitrary precision integer arithmetic library
8 8
9 $Id: mpi.h,v 1.2 2005/05/05 14:38:47 tom Exp $ 9 $Id$
10 */ 10 */
11 11
12 #ifndef _H_MPI_ 12 #ifndef _H_MPI_
13 #define _H_MPI_ 13 #define _H_MPI_
14 14
208 #endif 208 #endif
209 209
210 mp_err mp_read_radix(mp_int *mp, unsigned char *str, int radix); 210 mp_err mp_read_radix(mp_int *mp, unsigned char *str, int radix);
211 int mp_radix_size(mp_int *mp, int radix); 211 int mp_radix_size(mp_int *mp, int radix);
212 int mp_value_radix_size(int num, int qty, int radix); 212 int mp_value_radix_size(int num, int qty, int radix);
213 mp_err mp_toradix(mp_int *mp, unsigned char *str, int radix); 213 mp_err mp_toradix(mp_int *mp, char *str, int radix);
214 214
215 int mp_char2value(char ch, int r); 215 int mp_char2value(char ch, int r);
216 216
217 #define mp_tobinary(M, S) mp_toradix((M), (S), 2) 217 #define mp_tobinary(M, S) mp_toradix((M), (S), 2)
218 #define mp_tooctal(M, S) mp_toradix((M), (S), 8) 218 #define mp_tooctal(M, S) mp_toradix((M), (S), 8)
224 224
225 const char *mp_strerror(mp_err ec); 225 const char *mp_strerror(mp_err ec);
226 226
227 #endif /* end _H_MPI_ */ 227 #endif /* end _H_MPI_ */
228 228
229 /* $Source: /cvs/libtom/libtommath/mtest/mpi.h,v $ */ 229 /* $Source$ */
230 /* $Revision: 1.2 $ */ 230 /* $Revision$ */
231 /* $Date: 2005/05/05 14:38:47 $ */ 231 /* $Date$ */