Commit Graph

1230 Commits

Author SHA1 Message Date
Steffen Jaeckel
7482b3a95a fix missing symbols when building SC_RSA_1 2019-09-07 17:28:16 +02:00
Steffen Jaeckel
702e5391d0 add function pointers to tommath_class.h 2019-09-07 17:28:16 +02:00
Steffen Jaeckel
8721ca1239 order defines alphabetically 2019-09-07 17:28:16 +02:00
Steffen Jaeckel
c4e205183a add testbuild for RSA superclass 2019-09-07 17:28:16 +02:00
Steffen Jaeckel
75c52a893b be nice and tell when it's hex output
did you know that 0x35 is equal to 53? ... ;-)
2019-09-07 17:28:16 +02:00
Steffen Jaeckel
54661db6a4 allow RSA superclass to be built with tests 2019-09-07 17:28:16 +02:00
Steffen Jaeckel
1cd8ab1652 fix define 2019-09-07 17:28:16 +02:00
Steffen Jaeckel
f38a65e637 simplify some of the build rules 2019-09-07 17:28:16 +02:00
Steffen Jaeckel
9eecab7b49 print jenkins seed on startup
I just had a case around where the `mp_prime_rand()` testcase failed
but I couldn't reproduce.
I'm pretty sure that was caused by all my changes and partial rebuilds
but anyways it'll give us in the future the possibility to debug such
a case.
2019-09-07 17:28:16 +02:00
Steffen Jaeckel
e5f00d4127
Merge pull request #339 from fperrad/20190527_goto
some refactoring
2019-09-07 17:26:40 +02:00
Francois Perrad
06ff695b95 goto without block 2019-09-07 15:21:55 +02:00
Steffen Jaeckel
b264fb2b16
Merge pull request #345 from fperrad/20190907_lint
some linting
2019-09-07 15:14:29 +02:00
Francois Perrad
8cf0d3db85 literal suffix 2019-09-07 12:29:28 +02:00
Steffen Jaeckel
84fc6abeb5
Merge pull request #344 from czurnieden/correct_ilogb
Bugfix: removed check against MP_MASK
2019-09-07 10:42:17 +02:00
czurnieden
629b88cf9a removed check against MP_MASK 2019-09-06 20:22:57 +02:00
Steffen Jaeckel
c6e9e99efb
Merge pull request #335 from fperrad/20190902_lint
some linting
2019-09-04 07:42:05 +02:00
Francois Perrad
b14c8e377c explicit operator precedence 2019-09-03 18:05:45 +02:00
Steffen Jaeckel
7b79264206
Merge pull request #338 from czurnieden/re_issue_332_bis
Refactoring of prime-table part of `mp_prime_next_prime`
2019-09-03 16:46:04 +02:00
czurnieden
f05165ecc5 simplified code 2019-09-03 16:12:05 +02:00
Steffen Jaeckel
9074c7792e
Merge pull request #337 from libtom/fixup-332
Fixup 332
2019-09-03 15:07:53 +02:00
Steffen Jaeckel
0664a557df improve doc
[skip ci]
2019-09-03 14:53:47 +02:00
Steffen Jaeckel
3c9046da0f fix mp_to_radix macro 2019-09-03 11:08:56 +02:00
Steffen Jaeckel
72f9251939 fix last occurrences of mp_toradix() 2019-09-03 11:08:56 +02:00
Steffen Jaeckel
33ba5f0b4b
Merge pull request #336 from libtom/deprecated-fixes
Fix deprecation messages and unnecessary includes
2019-09-03 11:08:28 +02:00
nijtmans
bbe268ebd2 Fix deprecation messages and unnecessary includes 2019-09-03 10:53:40 +02:00
Steffen Jaeckel
1ed76442de
Merge pull request #302 from fperrad/20190525_refactor
some refactoring
2019-09-03 08:34:33 +02:00
Francois Perrad
6144ed6fb6 rename label LBL 2019-09-03 05:51:56 +02:00
Francois Perrad
a402b462e9 refactor with goto 2019-09-03 05:45:33 +02:00
Francois Perrad
49abba0937 refactor with mp_init_multi 2019-09-03 05:30:01 +02:00
Francois Perrad
8a1656c01c refactor with for 2019-09-03 05:24:12 +02:00
Francois Perrad
29ef033a0b refactor without inner scope 2019-09-03 05:24:12 +02:00
Steffen Jaeckel
857b112ef2
Merge pull request #334 from czurnieden/re_issue_332
repair of #333
2019-09-03 01:04:00 +02:00
Steffen Jaeckel
ad402d4351 no need for that if-else 2019-09-03 00:28:02 +02:00
czurnieden
8bb11ded99 included tests for mp_prime_next_prime 2019-09-02 21:25:22 +02:00
czurnieden
eebe1d26d0 repair of #333 2019-09-02 21:25:22 +02:00
Steffen Jaeckel
9f38acbcbf
Merge pull request #332 from libtom/add-mp_to_radix
Add `mp_to_radix()`
2019-09-02 18:52:45 +02:00
Steffen Jaeckel
6927326a6a return error if output-buffer is too small 2019-09-02 18:25:44 +02:00
Steffen Jaeckel
6cd570d08b use mp_to_radix etc. 2019-09-02 18:25:44 +02:00
Steffen Jaeckel
684426b670 add new conversion macros 2019-09-02 18:25:44 +02:00
Steffen Jaeckel
f0e6ae59ab add mp_to_radix()
...a 100% copy&paste of `mp_toradix_n()` besides the changed API signature
2019-09-02 18:25:44 +02:00
Steffen Jaeckel
a439ddf2f9
Merge pull request #262 from libtom/feature-detection2
add feature detection macro MP_HAS (2)
2019-09-02 13:06:25 +02:00
Daniel Mendler
672242bd70
msvc: disable warning C4003: not enough arguments for function-like macro invocation 'MP__STRINGIZE' 2019-07-24 11:09:44 +02:00
Daniel Mendler
625defdcff
fix gcc version check for deprecations 2019-07-24 11:09:44 +02:00
Daniel Mendler
8c1b296e86
add feature detection macro MP_HAS 2019-07-24 11:09:42 +02:00
Steffen Jaeckel
584405ff8e
Merge pull request #304 from libtom/deprecate-expt-root
deprecate mp_expt_d and mp_n_root in favor of mp_expt and mp_root
2019-07-17 15:57:43 +02:00
Daniel Mendler
ca89e9c0ef
rename mp_root/mp_expt to mp_*_u32 2019-07-17 15:45:04 +02:00
Daniel Mendler
71696549a8
deprecate mp_expt_d and mp_n_root in favor of mp_expt and mp_root 2019-07-17 15:45:04 +02:00
Steffen Jaeckel
18c919fcdb
Merge pull request #326 from nomeata/stdlib
Import stddef in tommath.h
2019-07-17 15:42:06 +02:00
Joachim Breitner
6c35dd7e11
Import stddef in tommath.h
At least here (compiling for WebAssembly
(`wasm32-unknown-unknown-wasm`), I need this, otherwise `size_t` is not
available.
2019-07-17 15:39:57 +02:00
Steffen Jaeckel
5190ae6cf3
Merge pull request #325 from libtom/rename_mag_fn
Rename bn_get_magxx -> bn_get_mag_uxx.  Documentation updated too
2019-07-04 09:43:23 +02:00