Christoph Zurnieden
d46cb169f8
removed obsolete check
2019-05-21 09:48:30 +02:00
Daniel Mendler
f55f0a9ef5
fix some usages of enum types
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
Francois Perrad
556219aa5b
refactor with new private macro MP_SIZEOF_BITS
...
CHAR_BIT is no longer directly used
2019-05-11 12:05:38 +02:00
Daniel Mendler
290c28c10e
deprecate PRIME_SIZE in favor of MP_PRIME_SIZE
2019-05-07 09:49:26 +02:00
Daniel Mendler
e45f75fddb
deprecate DIGIT_BIT, use MP_DIGIT_BIT
2019-04-25 13:39:50 +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
Daniel Mendler
5da4e0ac01
remove unnecessary size_t casts, fix Wconversion/Wsign-conversion issues
...
Wconversion and Wsign-conversion is still not activated by default,
since there are many issues in demo.c.
2019-04-05 10:52:39 +02:00
czurnieden
6608eea9e1
bugfix in final fips loop II: alternative version
2019-03-26 15:42:36 +01:00
czurnieden
7ecd1ad4f6
bugfix in final fips loop II
2019-03-26 15:42:36 +01:00
czurnieden
9771308d11
bugfix in final fips loop
2019-03-26 15:42:36 +01:00
Francois Perrad
b879bd495a
refactor with new macros IS_*
2019-02-02 07:39:23 +01:00
Francois Perrad
998b126fee
explicit operator precedence
2019-01-22 18:34:08 +01:00
Francois Perrad
c7f4e81deb
fix cast
2019-01-22 18:34:04 +01:00
Steffen Jaeckel
32622afe2f
run make format
2019-01-22 09:03:27 +01:00
Steffen Jaeckel
fcea5e3c35
Merge pull request #149 from czurnieden/develop
...
Added overflow check in mp_prime_is_prime and some verbosity in demo.c
(cherry picked from commit 55a7af3d62
)
2019-01-22 09:00:03 +01:00
Steffen Jaeckel
18355de625
Update file headers
...
[skip ci]
2018-12-29 17:56:20 +01:00
Steffen Jaeckel
d29916b4c5
fix missing check of return value
2018-12-26 13:16:15 +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
7a9cb1d1e5
literal suffix
2018-12-26 09:08:02 +01:00
Francois Perrad
29987bca9a
fix cast
2018-12-26 09:07:59 +01:00
Steffen Jaeckel
3ed524048f
make astyle
+ some manual adjustments
2018-12-25 15:17:12 +01:00
czurnieden
09133c9349
additional bugfixes
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
b19f529c77
Corrected 128 bit entry in bn_mp_prime_miller_rabin_rials.c and extended it slightly
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
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
38e8f93bdb
Handle edge cases with MP_8BIT and use correct upper limit for the random witnesses
2018-12-25 15:17:03 +01:00
czurnieden
9b448bdc08
exchanged direct call to Miller-Rabin in mp_prime_next_prime with mp_prime_is_prime
2018-12-25 15:17:03 +01:00
czurnieden
6ee0829d62
bugfix in bn_mp_mul_si. Ouch! strong Lucas_selfridge test switched back on
2018-12-25 15:17:03 +01:00
czurnieden
63dc065dc8
Adjusted API compliacnce for MP_8BIT in mp_prime_is_prime
2018-12-25 15:17:03 +01:00
czurnieden
a2e15e2d10
Added tests to demo.c, switched off Lucas-Selfridge because it failed a test, and changed MP_8BIT handling in mp_prime_is_prime
2018-12-25 15:17:03 +01:00
czurnieden
fd876e4a7f
bugfix in mp_prime_is_prime for small input
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
a218ddce9b
Added Fips 186.4 compliance, an additional strong Lucas-Selfridge (for BPSW) and a Frobenius (Paul UNderwood) test, both optional. With documentation.
2018-12-25 15:17:03 +01:00
czurnieden
9034e712b8
Do not use installed headers for building
2018-05-02 21:43:17 +02:00
Steffen Jaeckel
f51249b6aa
clean-up file headers
2018-02-27 23:30:43 +01: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
45771cc91c
format with astyle (step 1)
2017-08-30 20:09:49 +02:00
Francois Perrad
aab1b3d99f
split label & statement
2017-08-30 20:09:13 +02:00
Francois Perrad
d6a9a58f64
remove space after function name and cast
2017-08-30 20:08:58 +02:00
Steffen Jaeckel
6f21294212
replace SVN tags
2017-08-28 17:00:58 +02:00
Francois Perrad
99c84acc4c
add parentheses for explicit operator precedence
2015-12-02 22:47:51 +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
079b0f65a9
Getting ready for v0.43.0 release
...
Also updated my email address...
Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-30 17:55:29 -04:00
Tom St Denis
333aebc894
added libtommath-0.41
2010-07-15 17:26:06 +02:00