Commit Graph

535 Commits

Author SHA1 Message Date
Steffen Jaeckel
c92761eb23 Re-license
This resolves #126 and resolves #76

[skip ci]
2018-12-27 15:41:16 +01:00
Steffen Jaeckel
13444a8af2
Merge pull request #141 from fperrad/20181227_lint
more linting
2018-12-27 15:40:50 +01:00
Francois Perrad
ab074176ab explicit condition 2018-12-27 09:44:59 +01:00
Francois Perrad
f1f6762616 conditional definition of FGETS 2018-12-27 09:44:57 +01:00
Francois Perrad
2bde5bb5d5 semicolon 2018-12-27 09:44:54 +01:00
Francois Perrad
c63ce5bf1f fix indentation 2018-12-27 09:44:51 +01:00
Francois Perrad
b6fa97c591 explicit operator precedence 2018-12-27 09:44:46 +01:00
Francois Perrad
ea44272d41 always use #if LTM_DEMO_TEST_VS_MTEST != 0 2018-12-27 09:44:43 +01:00
Francois Perrad
efda3c0e10 declare cnt only when useful 2018-12-27 09:44:41 +01:00
Francois Perrad
4f902d9f10 remove useless assignment of cnt 2018-12-27 09:44:37 +01:00
Francois Perrad
e519d5ef41 fix format 2018-12-27 09:44:34 +01:00
Francois Perrad
4fec1ae6f2 remove side effect inside parameter of macro MAX 2018-12-27 09:44:29 +01:00
Steffen Jaeckel
b722832b32
Merge pull request #140 from libtom/fix/missing_check
fix missing check of return value
2018-12-26 16:22:58 +01:00
Steffen Jaeckel
d29916b4c5 fix missing check of return value 2018-12-26 13:16:15 +01:00
Steffen Jaeckel
bd14983023
Merge pull request #139 from fperrad/20181226_lint
some linting
2018-12-26 13:14:55 +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
29987bca9a fix cast 2018-12-26 09:07:59 +01:00
Francois Perrad
79d47278bb static const variable 2018-12-26 09:07:56 +01:00
Francois Perrad
8dceba2e68 remove useless initialization 2018-12-26 09:07:48 +01:00
Steffen Jaeckel
f9eec4350e
Merge pull request #113 from czurnieden/develop
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 16:52:45 +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
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
Steffen Jaeckel
e6f353b48d add mp_prime_is_prime to timing demo...
... it's disabled per default for now...
2018-12-25 15:17:12 +01:00
Steffen Jaeckel
4f245b0476 Update makefiles etc. 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
8cb2b5e216 Updated documentation to reflect the sudden disappearance of mp_mul_si() 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
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
ba786e6b39 Call mp_kronecker from mp_jacobi to save some bytes while keeping the API 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
06c8f3ec4e replaced mp_set_int with mp_set_long, just in case 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
01dde64e05 In case of a timeout echo last line in logfile of last test before that logfile gets removed 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
44ccca75be the lost files from the last commit 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
Steffen Jaeckel
f17d90b96d
Merge pull request #136 from czurnieden/docsupdate
Docsupdate
2018-12-25 13:50:59 +01:00
czurnieden
48c95f2afd repaired bn.tex 2018-12-12 00:51:10 +01:00
czurnieden
9505280693 added most of the missing doumentation to doc/bn.tex 2018-12-10 10:47:25 +01:00