czurnieden
3dd542f2fe
Changed macro 'LTM_USE_FIPS_ONLY' to 'LTM_USE_ONLY_MR'
2019-10-14 23:05:56 +02:00
Francois Perrad
06ff695b95
goto without block
2019-09-07 15:21:55 +02:00
Daniel Mendler
0a9f5e9bc1
use u32 i64 suffix
2019-05-24 10:21:54 +02:00
Daniel Mendler
b58c996686
use int32 and uint32 instead of sint and uint
2019-05-24 00:15:57 +02:00
Daniel Mendler
3289c9590b
introduce various mp_set_sint/mp_set_uint functions with precise types
2019-05-24 00:15:57 +02:00
Francois Perrad
8b2daf7817
always use varname err with mp_err
2019-05-20 05:36:18 +02:00
Daniel Mendler
a8239c2465
deprecate mp_get_bit
...
The return type of mp_get_bit was imprecise (either mp_err or mp_bool),
therefore this function is deprecated in favor of s_mp_get_bit for now.
If we need s_mp_get_bit to be public, we should add it under a different
name. However since mp_set_bit is not available, I don't think there any
downstream users (ab)using mp_int as bitsets.
2019-05-18 10:03:47 +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
Francois Perrad
0f53ceb4cb
improve indentation
2018-12-26 09:08:12 +01:00
Francois Perrad
5d090112af
explicit operator precedence
2018-12-26 09:08:08 +01:00
Francois Perrad
8e76691203
explicit condition
2018-12-26 09:08:05 +01:00
Francois Perrad
7a9cb1d1e5
literal suffix
2018-12-26 09:08:02 +01:00
Francois Perrad
8dceba2e68
remove useless initialization
2018-12-26 09:07:48 +01:00
Steffen Jaeckel
bb14a70d74
return immediately
2018-12-25 16:38:51 +01:00
Steffen Jaeckel
3ed524048f
make astyle
+ some manual adjustments
2018-12-25 15:17:12 +01:00
Steffen Jaeckel
a79a7eda65
reverse order of arguments to mp_clear_multi()
2018-12-25 15:17:12 +01:00
czurnieden
3ec93dab9e
bugfix in bn_mp_kronecker.c, cleanup and formatting in div. files
2018-12-25 15:17:12 +01:00
czurnieden
f4449362c0
fixes for MP_8BIT and mx32, prefinal design
2018-12-25 15:17:12 +01:00
czurnieden
08cee4325d
Moved mp_mul_si() into bn_mp_prime_strong_lucas_selfridge.c as a local function
2018-12-25 15:17:03 +01:00
czurnieden
934dd31738
changes and bigfixes, see pull-request #113 at https://github.com/libtom/libtommath/pull/113 for details
2018-12-25 15:17:03 +01:00
czurnieden
06c8f3ec4e
replaced mp_set_int with mp_set_long, just in case
2018-12-25 15:17:03 +01:00
czurnieden
fdaad99b1b
make it compile with MP_8BIT
2018-12-25 15:17:03 +01:00
czurnieden
44ccca75be
the lost files from the last commit
2018-12-25 15:17:03 +01:00