Commit Graph

696 Commits

Author SHA1 Message Date
Steffen Jaeckel
6a9deb79da fix & run dep.pl 2018-12-31 11:54:02 +01:00
Steffen Jaeckel
7ac11218ca clarify comment of ltm_rng() 2018-12-31 11:54:02 +01:00
Steffen Jaeckel
dd68e313de update changes.txt 2018-12-31 11:54:02 +01:00
Steffen Jaeckel
fb07f33dfc bump version 2018-12-31 11:54:02 +01:00
Steffen Jaeckel
62adf47fb8
Merge pull request #144 from czurnieden/develop
reg. #143 corrected translation of mpz_fdiv_q_2exp
2018-12-31 11:53:25 +01:00
czurnieden
813963178f reg. #143 added test to demo.c 2018-12-30 22:35:03 +01:00
czurnieden
a428a6d5dc reg. #143 corrected translation of mpz_fdiv_q_2exp 2018-12-30 22:11:55 +01:00
czurnieden
d65b6f40c0 reg. #143 corrected translation of mpz_fdiv_q_2exp 2018-12-30 22:09:12 +01:00
czurnieden
af29c51921 reg. #143 corrected translation of mpz_fdiv_q_2exp 2018-12-30 22:05:36 +01:00
Steffen Jaeckel
1eabbca8c4
Merge pull request #138 from libtom/relicense
Re-license
2018-12-29 20:08:07 +01:00
Steffen Jaeckel
18355de625 Update file headers
[skip ci]
2018-12-29 17:56:20 +01:00
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