Commit Graph

60 Commits

Author SHA1 Message Date
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
2a2e2716c2
move jenkins prng to bn_s_mp_rand_jenkins.c 2019-05-12 23:45:36 +02:00
Daniel Mendler
c8cc3657e7
mov s_mp_rand_source_platform to separate file 2019-05-12 23:45:36 +02:00
Daniel Mendler
0669e92e78
deprecate mp_prime_random_ex in favor of mp_prime_rand
We can use the internal mp_rand generator now, since it generates
numbers which are safe for crypto purposes.
2019-05-11 00:48:48 +02:00
Steffen Jaeckel
a7fcb6f53c update etc/tune_it.sh after merging #231 2019-05-06 23:29:08 +02:00
czurnieden
db76bed220 added autotuning functionality for the Toom-Cook cut-offs 2019-05-06 23:29:08 +02:00
Daniel Mendler
818d8fb7f5
Rework handling of tunable cutoffs
* In the default settings, a cutoff X can be modified at runtime
   by adjusting the corresponding X_CUTOFF variable.

 * Tunability of the library can be disabled at compile time
   by defining the MP_FIXED_CUTOFFS macro.

 * There is an additional file tommath_cutoffs.h, which defines
   the default cutoffs. These can be adjusted manually or by the
   autotuner.
2019-05-04 13:08:37 +02:00
Daniel Mendler
fbfcb66184
apply rename 2019-04-12 14:56:29 +02:00
nijtmans
5968263bc4 Rename bn_error.c to bn_mp_error_to_string.c 2019-04-10 14:49:59 +02:00
czurnieden
35311aea49 added function mp_ilogb 2019-04-09 21:59:59 +02:00
czurnieden
27ca25cb82 added multiplcation balancing for the Toom-Cook algorithms 2019-04-07 22:15:09 +02:00
czurnieden
769218ccc7 additional functions mp_incr and mp_decr 2019-04-04 07:58:19 +02:00
Daniel Mendler
cd1570bb88
split test suite 2019-03-04 01:02:22 +01:00
Francois Perrad
6ce271c4db mp_iseven & mp_isodd becomes C functions 2019-02-02 07:39:23 +01:00
Steffen Jaeckel
93dea3a416 makefile.shared: fix compilation and linkage 2019-01-31 14:19:04 +01:00
Steffen Jaeckel
cac3315253 mtest make-target should be PHONY 2019-01-23 10:11:20 +01:00
Steffen Jaeckel
4f245b0476 Update makefiles etc. 2018-12-25 15:17:12 +01:00
Karel Miko
4b85095405 fix cygwin build 2018-12-02 17:56:10 +01:00
Karel Miko
a16f34f97e re-sort OBJECTS in makefile* 2018-12-02 13:58:50 +01:00
Daniel Mendler
81cdb9aca2
regenerate files 2018-11-22 12:05:16 +01:00
Daniel Mendler
109bfa57bf
regenerate files 2018-09-10 18:49:10 +02:00
orbea
0a8a162669 makefile.shared: Respect LIBTOOL. 2018-05-19 07:11:49 -07:00
Steffen Jaeckel
c69c3907c3 rename timing demo 2018-02-27 23:30:43 +01:00
Steffen Jaeckel
465933ebf8 disable some compiler warnings 2017-08-29 22:26:54 +02:00
Steffen Jaeckel
3e2ebd3b47 auto-determine correct libtool binary for MacOS
This fixes #83
2017-08-29 10:29:58 +02:00
Steffen Jaeckel
36ef587709 bump version 2017-08-28 17:04:18 +02:00
Steffen Jaeckel
a29e9fa7c4 add uninstall make-target
[skip ci]
2017-08-28 15:56:30 +02:00
Steffen Jaeckel
237b49ad4a correct usage of DESTDIR, PREFIX, etc. for the install make-target
[skip ci]
2017-08-28 15:56:12 +02:00
Steffen Jaeckel
5ade6248ff always use the same order of objects to create the library 2017-08-26 11:12:03 +02:00
Steffen Jaeckel
7cc18ffd11 rename/move some files; fix some stuff regarding this 2017-08-26 11:12:03 +02:00
Steffen Jaeckel
141a98931e fixup install and clean 2017-05-10 11:37:48 +02:00
Steffen Jaeckel
f40568ba1e add pkg-config file for shared library 2017-05-09 14:25:11 +02:00
Steffen Jaeckel
d2e8179c21 install per default to /usr/local 2017-05-09 14:24:41 +02:00
Tom St Denis
37a92dd079 Simplify versioning to drop patch level 2016-02-02 11:54:57 -05:00
Dennis Fateyev
8fde8fa41b Improve package version assignment 2015-12-25 19:23:46 +01:00
Steffen Jaeckel
087d2b4cf1 refactor & clean-up makefiles 2015-12-12 20:19:15 +01:00
Steffen Jaeckel
b98147c972 update install steps in makefiles
- add tommath_private.h to HEADERS
- only install public header files
- move more shared stuff to makefile.include
- make it possible to override the *PATH makefile variables
2015-11-12 02:02:18 +01:00
Steffen Jaeckel
1f8894790b update makefiles etc. 2015-10-30 18:04:33 -04:00
Steffen Jaeckel
5eb6ebbb23 makefiles: improve a bit 2015-04-18 15:06:28 +02:00
Steffen Jaeckel
ffb172f403 makefiles: add makefile.include
to be used in makefile and makefile.shared

use -Wextra instead of deprecated -W
add additional warnings also used in libtomcrypt
  can be disabled by defining NO_ADDTL_WARNINGS
add possibility to define COMPILE_SIZE or COMPILE_DEBUG
2014-12-14 19:43:50 +01:00
Steffen Jaeckel
d4cccd52d1 udpate makefiles etc. 2014-12-10 18:59:56 +01:00
Steffen Jaeckel
cf04521695 update makefiles etc. 2014-12-10 17:21:14 +01:00
Steffen Jaeckel
d71719853a update after removing balance multiplication 2014-10-18 18:56:56 +02:00
Steffen Jaeckel
30fcfec893 update makefiles 2014-10-13 15:50:16 +02:00
Steffen Jaeckel
9bff6bbb57 prepare makefiles for "updatemakes" 2014-10-13 15:49:23 +02:00
Steffen Jaeckel
759a926cfe minor changes & clean-up & small fixes
gitignore: add libtool output
booker.pl: fix source code parsing and trim trailing spaces
demo/demo: fix compiler warning, add informational output
demo/timing & etc/tune: fix TIMFUNC()
makefile: minor changes
makefile.shared: increase version, add missing mp_balance_mul
tommath: make sure that DIGIT_BIT is correct
2014-09-28 13:12:10 +02:00
Steffen Jaeckel
0213986c7b trim trailing spaces/clean up 2014-09-02 02:14:38 +02:00
Steffen Jaeckel
750d17cd96 update makefiles 2013-11-24 15:21:39 +01:00
Steffen Jaeckel
e28c803e87 Fix makefile.shared as proposed in gentoo bug report #376643
c.f. https://bugs.gentoo.org/show_bug.cgi?id=376643
2013-09-03 12:21:16 +02:00