Commit Graph

25 Commits

Author SHA1 Message Date
Francois Perrad
8b2daf7817 always use varname err with mp_err 2019-05-20 05:36:18 +02:00
Daniel Mendler
56e7a40123
deprecate mp_jacobi 2019-05-18 10:03:46 +02:00
Francois Perrad
91474f6e14 remove useless initialization 2019-05-15 09:22:39 +02:00
Daniel Mendler
4534056c28
use enums mp_err, mp_ord, mp_bool, mp_sign
* MP_USE_ENUMS enables enums
* Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined
* 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined
2019-05-13 19:15:14 +02:00
Daniel Mendler
7365442ace
No grow necessary in mp_set_int* functions
* mp_set_int* always return MP_OKAY
* remove return checks for mp_set_int*
* introduce MP_MIN_PREC
2019-05-12 13:04:45 +02:00
Daniel Mendler
c4fb2241dc
rename macros in tommath_private to use MP_* prefix 2019-04-12 14:55:08 +02:00
Daniel Mendler
ff56140462
shorter headers 2019-04-07 17:26:31 +02:00
Daniel Mendler
70a30ae7a7
remove footers 2019-04-07 17:26:31 +02:00
Francois Perrad
b879bd495a refactor with new macros IS_* 2019-02-02 07:39:23 +01:00
Steffen Jaeckel
18355de625 Update file headers
[skip ci]
2018-12-29 17:56:20 +01:00
Karel Miko
0493739d2b add missing comments 2018-12-02 13:10:09 +01:00
czurnieden
9034e712b8 Do not use installed headers for building 2018-05-02 21:43:17 +02:00
Francois Perrad
bdbed00079 literal suffix 2017-10-15 19:57:12 +02:00
Francois Perrad
40c763a18d literal suffix in call function 2017-10-15 16:11:09 +02:00
nijtmans
f674018a41 constify remaining functions 2017-09-20 16:59:43 +02:00
Francois Perrad
a20d9b102c format with astyle (step 4) 2017-08-30 20:23:22 +02:00
Francois Perrad
d263dc727c add space after keyword 2017-08-30 20:09:07 +02:00
Francois Perrad
0ff04a4f6f remove hard tab 2017-08-30 05:51:22 +02:00
Francois Perrad
c0b14e3df4 handle the return value of function 2015-12-02 22:47:51 +01:00
Francois Perrad
babf35c64a explicit condition 2015-12-02 22:47:50 +01:00
Steffen Jaeckel
4e3f1344a5 provide tommath_private.h
tommath.h contains declarations for the public part of the library.
tommath_private.h contains the functions which are private to ltm and
should not be exposed to the public.
2015-11-12 01:49:07 +01:00
Tom St Denis
575d9bac4b Add error check to mp_sqrtmod_prime()
Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-30 18:08:42 -04:00
Karel Miko
c31102bc0e fix warning: expected "mp_digit *" but argument is of type "long unsigned int *" 2015-10-30 18:04:33 -04:00
Steffen Jaeckel
1f8894790b update makefiles etc. 2015-10-30 18:04:33 -04:00
Karel Miko
1c85a28372 adding bn_mp_sqrtmod_prime.c 2015-10-30 18:04:33 -04:00