Daniel Mendler
bd8f7e55e6
introduce MP_PRIVATE to hide symbols (opt-in for now)
2019-05-21 18:08:02 +02:00
Steffen Jaeckel
28290072b6
Merge pull request #276 from libtom/fix-137
...
fix #137
2019-05-21 18:05:56 +02:00
Daniel Mendler
a069512b71
fix #137
2019-05-21 18:05:30 +02:00
Steffen Jaeckel
22768cf08c
Merge pull request #271 from libtom/private-headers
...
make tommath_class.h and tommath_superclass.h private
2019-05-21 18:04:47 +02:00
Daniel Mendler
0dfa9da5a6
make tommath_class.h and tommath_superclass.h private
...
These headers are used for configuration during build time.
Therefore they shouldn't be exposed as part of the public API.
2019-05-21 18:01:17 +02:00
Steffen Jaeckel
7345a6826f
Merge pull request #270 from libtom/macro-fixes
...
Macro fixes
2019-05-21 16:27:11 +02:00
Daniel Mendler
87edbfe42a
ensure that bn_reverse is compiled in bn_deprecated.c
2019-05-21 15:58:06 +02:00
Daniel Mendler
69f03b3aab
gitignore doc/pics/*.ps
2019-05-21 15:58:06 +02:00
Daniel Mendler
6d84f15e53
remove comment in bn_deprecated
2019-05-21 15:58:06 +02:00
Daniel Mendler
dac8275e1b
fix mp_jacobi ifdef
2019-05-21 15:58:06 +02:00
Daniel Mendler
6631d42664
remove __cplusplus stuff from tommath_private.h
...
tommath_private.h is an internal header which won't be included
by a C++ source file.
2019-05-21 15:58:06 +02:00
Steffen Jaeckel
96b5552cb9
Merge pull request #267 from libtom/private_mp_word
...
make mp_word private
2019-05-21 15:57:38 +02:00
Daniel Mendler
0b840b78a3
make mp_word private
...
mp_word is an internal type and it is problematic if it is exposed
in the public api. See for example #216 - MSVC does not support 128 bit
mp_words. But it is perfectly ok to use those internally in the library,
as long as the library is compiled with GCC.
2019-05-21 15:34:04 +02:00
Steffen Jaeckel
e9c4590d4e
Merge pull request #280 from czurnieden/toom_cook_2_3_tests
...
Tests for Karatsuba and Toom-Cook 3-way
2019-05-21 15:23:31 +02:00
czurnieden
03ca7bcdae
added tests for Karatsuba and Toom-Cook 3-way
2019-05-21 15:21:39 +02:00
Steffen Jaeckel
75d3c57a15
Merge pull request #282 from libtom/restrict-v-algrind
...
Restrict running Valgrind
2019-05-21 15:20:46 +02:00
Steffen Jaeckel
2555884f34
really last one - reorder once more
...
so all long-running jobs start in the beginning
[skip ci]
2019-05-21 15:20:05 +02:00
Daniel Mendler
55ce3e350a
last last one - mtest with real rand on gcc, with prng on clang
2019-05-21 14:58:05 +02:00
Steffen Jaeckel
f8ecaf05c5
ok, a last one - reorder stuff ;-)
...
[skip ci]
2019-05-21 14:56:01 +02:00
Daniel Mendler
c09efffbde
Run gcc 4.9 build on valgrind instead of sanitized clang build
2019-05-21 14:50:44 +02:00
Daniel Mendler
77b42459c5
ok, one more - disable gcc mtest-vs-test runs, only run clang tests
...
[skip ci]
2019-05-21 14:44:50 +02:00
Daniel Mendler
e379c0f734
COMPILE_DEBUG should not disable optimizations
...
If you additionally want to disable optimizations, define this IGNORE_SPEED macro.
2019-05-21 14:26:14 +02:00
Daniel Mendler
f92d8f0a12
COMPILE_DEBUG=1 for the valgrind build
2019-05-21 13:54:18 +02:00
Steffen Jaeckel
30361df573
v-algrind and tune builds to the beginning
...
... as they take the longest time
2019-05-21 13:49:19 +02:00
Daniel Mendler
5c7b9180b7
run tuner only once during CI
2019-05-21 13:43:06 +02:00
Steffen Jaeckel
01e93bb0fc
fix tune for non-v-algrind travis builds
2019-05-21 13:25:24 +02:00
Daniel Mendler
ce34b3aec2
Restrict running Valgrind
...
* Activate on the develop branch
* Activate on branches containing the word v-algrind (without hyphen)
* Activate if the commit message contains v-algrind (without hyphen)
* Run default build always with valgrind
2019-05-21 13:03:31 +02:00
Steffen Jaeckel
e11f70f031
Merge pull request #269 from libtom/fix-miller-rabin-trials
...
do 2 MR rounds for numbers >=2048bits
2019-05-21 12:08:43 +02:00
Steffen Jaeckel
51cda5b82b
use correct amount of MR trials in tests
2019-05-21 09:48:48 +02:00
Steffen Jaeckel
1cbfbe069e
do 2 MR rounds for numbers >=2048bits
2019-05-21 09:48:48 +02:00
Christoph Zurnieden
d46cb169f8
removed obsolete check
2019-05-21 09:48:30 +02:00
Steffen Jaeckel
b31a1086ed
Merge pull request #268 from libtom/improve-coverage
...
improve coverage
2019-05-21 09:46:05 +02:00
Steffen Jaeckel
cb3ff8c28d
improve coverage
2019-05-21 09:45:22 +02:00
Steffen Jaeckel
702ebdf7d3
Merge pull request #274 from fperrad/20190519_refactor
...
some refactoring
2019-05-21 09:44:23 +02:00
Francois Perrad
be42ce203e
remove literal prefix
2019-05-20 05:36:27 +02:00
Francois Perrad
150c47cce2
refactor literal suffix with u lowercase
2019-05-20 05:36:24 +02:00
Francois Perrad
fd68b6526c
refactor without err initialization
2019-05-20 05:36:21 +02:00
Francois Perrad
8b2daf7817
always use varname err with mp_err
2019-05-20 05:36:18 +02:00
Francois Perrad
c1f5b06d4b
refactor with mp_init_multi
2019-05-20 05:36:08 +02:00
Francois Perrad
d185c1d7bd
refactor without inner scope
2019-05-19 14:56:04 +02:00
Steffen Jaeckel
97bc7ca032
Merge pull request #260 from libtom/deprecations2
...
Various deprecations
2019-05-18 10:54:44 +02:00
Daniel Mendler
f55f0a9ef5
fix some usages of enum types
2019-05-18 10:03:47 +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
56e7a40123
deprecate mp_jacobi
2019-05-18 10:03:46 +02:00
Daniel Mendler
75e85a7341
move mp_prime_random_ex to bn_deprecated.c
2019-05-18 10:03:46 +02:00
Daniel Mendler
885e5e19b4
move mp_rand_digit to bn_deprecated.c
2019-05-18 10:03:46 +02:00
Steffen Jaeckel
b96d82dff7
Merge pull request #264 from libtom/rand-test-bugfix
...
bugfix: don't revert to platform rand source, but to jenkins source!
2019-05-18 10:00:26 +02:00
Daniel Mendler
198418ba5e
bugfix: don't revert to platform rand source, but to jenkins source!
2019-05-18 10:00:07 +02:00
Steffen Jaeckel
07b479a62e
Merge pull request #263 from fperrad/20190514_lint
...
more linting
2019-05-18 09:59:27 +02:00
Francois Perrad
91474f6e14
remove useless initialization
2019-05-15 09:22:39 +02:00