Branch


Log

Author Commit Date CI Message
Steffen Jaeckel 03de03de 2022-10-28T15:49:30 Merge pull request #535 from czurnieden/bugfix_invmod Fix: removed sign operation in s_mp_invmod_odd (issue #534)
czurnieden 908e098c 2022-09-07T23:03:13 Fix: removed sign operation in s_mp_invmod_odd Changed a check for <0 with mp_isneg() in s_mp_invmod Additional tests for mp_invmod() in demo/test.c
Steffen Jaeckel 96f9edf9 2022-10-03T12:34:13 Merge pull request #536 from libtom/some-improvements Some improvements
Steffen Jaeckel 4de4e4f1 2022-10-02T13:03:40 delete typos.sh again you did a good job :) This closes #533 Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 7c10db3d 2022-04-28T11:41:40 support Valgrind for tests when using CMake Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 6929c136 2022-03-23T17:50:22 add C89 support for CMake Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel c7686f24 2022-10-02T12:58:53 slightly edit, update and run typos.sh Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
spaette ae0c9cb2 2022-10-02T12:53:57 Add typos.sh script
Steffen Jaeckel e03e52d2 2022-04-28T11:44:00 ensure compilation with Clang succeeds Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel f3b88795 2022-10-03T12:12:16 Merge pull request #506 from Biswa96/develop Makefile: Fix shared library build in MinGW.
Biswapriyo Nath 6d665011 2021-03-28T21:24:41 Makefile: Fix shared library build in MinGW. This enables -no-undefined linker flag in mingw toolchain. Previous related commit 4b850954056943be03452c9a2b4bb621d663e40b
Steffen Jaeckel 4b473685 2022-04-28T11:32:32 Merge pull request #530 from lynxluna/feature/watcom-support Add Support For WATCOM compiler flags
Didiet ade13cfc 2022-04-17T05:02:40 Add Support For WATCOM compiler flags
Steffen Jaeckel 5108f123 2022-03-28T09:52:31 Merge pull request #528 from libtom/add-cmake-support Add cmake support
Steffen Jaeckel 72ce1e53 2022-03-23T12:21:27 rename cmake project to `libtommath` Instead of prepending multiple times 'lib', change the target-properties `OUTPUT_NAME` once. This also improves cpack package names to be more distro-style. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel d31801fe 2022-03-22T15:39:00 take review comments into account * protect GCC-specific stuff * use `list(APPEND...)` * use CMake-style way to choose whether LTO should/can be done or not * only install public header, not all * add correct `install` option for DLL's on Windows * use correct folder for .pc files * check if `uname` exists & add support for FreeBSD Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 0f80b46a 2022-03-22T19:56:27 adjust CI builds * split up build and test process * build and run tests twice - once from regular build folder - once from demo Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 0b98bc71 2022-03-22T15:35:55 split up into two CMakeLists.txt one for the library, one for the demo Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel a107eafd 2022-03-22T13:49:36 include all headers in sources.cmake Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel ab9ba06d 2022-03-22T13:49:02 fix `pkgconfig` creation in `makefile.shared` Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel ed6ad7d9 2022-03-15T14:12:09 extend CI matrix for different cmake options Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 22dfda7e 2022-02-27T12:56:09 further simplifications/improvements * bump to CMake 3.10 * only support the CMake standard way to define variables via `-DFOO=On` and not via the environment * clean-up switches only used for unit tests * mingw's ID is "GNU", so we match on the full compiler name instead * use CMake variables instead of environment variables via `$ENV{<stuff>}` * unconditionally set {C,LD}FLAGS passed by user * clean-up duplicate CPack keys + add FreeBSD config * store pack files in distro-specific paths * use default names where possible * use `CMAKE_BUILD_TYPE`-style variables instead of our own flags * set default `CMAKE_BUILD_TYPE` to "Release" Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
czurnieden ba74457f 2022-03-02T22:28:49 Build and install libtommath.pc
Adrian Antonana 97ba3e15 2022-02-13T12:47:40 cmake: update cmake sources file
Steffen Jaeckel cb8f2128 2022-02-21T11:18:52 add SPDX identifiers Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 41574fab 2022-02-21T10:51:14 simplify what was ported from the makefiles * remove some of the complicated logic. The additional warnings always make sense. CMake uses the state of `BUILD_SHARED_LIBS` to determine the library target type. Also remove the comment regarding building shared and static at the same time, as usually that's done as necessary by the user. * append user-defined {C,LD}FLAGS instead of preprending - we expect them to know what they do, so they can override our defaults * use target_{compile,link}_options() instead of setting variables Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
czurnieden 391e47d1 2022-02-20T08:28:34 Made "test" work with shared lib, started gathering environment variables for CFLAGS
Steffen Jaeckel 7cacdedc 2022-02-17T18:06:43 add cmake tests to CI Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel e1788a82 2022-02-17T18:06:19 allow unit tests in shared library builds The test sources must be compiled with a special define and require optimisation in order to be able to run. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel 9412d1a6 2022-02-17T17:18:40 update README Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Adrian Antonana 0a370845 2022-02-19T14:37:06 cmake: add missing LIBRARY DESTINATION in install targets
Adrian Antonana cc8614ab 2022-02-19T12:18:20 cmake: define BUILD_SHARED_LIBS option... in addition to be able to pass it on cmake invokation tools like ccmake et al. will show it as a configurable option
Steffen Jaeckel 7f9fbb64 2020-01-16T15:21:30 helper.pl: add support to update sources.cmake
Adrian Antonana 3c94017d 2019-12-09T16:12:38 cmake: add cpack for generating packages
Adrian Antonana 6da9d1a9 2019-12-09T16:08:59 cmake: rename test target fixes cmake (v3.10.2) error under ubuntu 18.04 due to reserved target name
Adrian Antonana 8fd791d8 2019-12-09T13:52:40 cmake: have the sources/headers variables defined in a separated file
Adrian Antonana 019c3dcc 2019-12-09T13:51:43 cmake: add cmake lists file
Adrian Antonana 44b6517b 2019-12-09T13:49:10 git: ignore kdevelop generated files
Adrian Antonana f993147b 2019-12-09T13:48:43 git: ignore cmake build directories
Steffen Jaeckel 66de8642 2022-03-14T10:43:52 Merge pull request #505 from urazoff/develop Add FNV-1a hash function
Steffen Jaeckel f37f6205 2022-02-16T12:38:15 add mp_hash doc Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Dilshod Urazov f12c2ab5 2021-03-26T10:47:25 Add FNV-1a hash function This allows to compute non-cryptographic hash of mp_int which can be used as a key in a hash table.
Steffen Jaeckel 04e9d1e7 2022-02-15T13:14:40 Merge pull request #527 from libtom/replace-travis migrate from travis to GitHub actions
Steffen Jaeckel 17b0fd2a 2022-02-14T14:32:04 migrate from travis to GitHub actions Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
Steffen Jaeckel bea92706 2021-12-14T11:52:59 Merge pull request #522 from czurnieden/complete_mp_is_square Introduced 0 (zero) to mp_is_square as a perfect square
czurnieden ab7bcec5 2021-12-13T21:08:49 Introduced 0 (zero) to mp_is_square as a perfect square
Steffen Jaeckel 2cec6add 2021-12-02T10:39:10 Merge pull request #517 from cntrump/pr_improve_swiftpm Add testTarget for SwiftPM
Lvv.me ac10f9da 2021-12-01T22:43:45 Add testTarget for SwiftPM Run swift test case: ``` $ swift test ```
Steffen Jaeckel f6927829 2021-12-01T15:31:15 Merge pull request #516 from cntrump/pr_spm_support Add Swift Package Manager support
Lvv.me 9b6d7d5c 2021-12-01T22:10:29 Add Swift Test case for libtommath
Lvv.me 3d282f2f 2021-11-25T14:12:24 Add comment for ThinLTO flags
Lvv.me 8422235d 2021-11-25T13:58:21 Add ThinLTO flags
Lvv.me 65b6ff69 2021-11-25T13:37:24 Add Swift Package Manager support
Steffen Jaeckel 8355b88d 2021-09-21T14:41:48 Merge pull request #512 from arnout/patch-1 s_mp_rand_platform.c: s_read_urandom: correctly handle split read
arnout 528fdb04 2021-09-21T14:37:52 s_mp_rand_platform.c: s_read_urandom: correctly handle split read s_read_urandom has a while loop to handle read() that returns less than the full buffer (either due to EINTR or because more than the atomic guarantee from urandom was requested). However, the target of the read was always the base pointer p instead of the updated pointer q, so in the end less than the requested randomness is returned. Use q instead of p in the read() call. Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
Steffen Jaeckel eda0bd6a 2021-01-03T19:57:20 Merge pull request #500 from czurnieden/clean_strings_for_mtest_opponent Replaced "fgets" with a "get_token" function in demo/mtest_opponent.c
Steffen Jaeckel 813b1569 2021-01-03T17:44:10 improve error handling * handle buffer full case * display error reason of `s_mp_get_token()` * display name of variables when `draw()`ing on error
czurnieden 24ac0de6 2020-12-26T10:28:08 Replaced "fgets" with a "get_token" function in demo/mtest_opponent.c
Steffen Jaeckel 1b3792b2 2020-12-20T21:01:12 Merge pull request #496 from libtom/update-documentation Update documentation
Horst H. von Brand 96bfafae 2020-12-19T13:08:51 Documentation: Kludge for decent "mod" operation [skip ci] Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Horst H. von Brand ae29a38c 2020-12-19T12:46:16 Documentation: Fix an exponent Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Horst H. von Brand eb752021 2020-12-19T13:01:28 Documentation: Grammo Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Horst H. von Brand 64bb3aa2 2020-12-19T12:49:03 Documentation: Fix Format mp_rand_source Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Horst H. von Brand a1a057b5 2020-12-19T12:47:56 Documentation: Fix /dev/urandom Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Steffen Jaeckel d014573f 2020-12-20T12:49:11 Merge pull request #493 from timgates42/bugfix_typo_excluding docs: fix simple typo, exluding -> excluding
Tim Gates 8d9df128 2020-12-19T19:09:57 docs: fix simple typo, exluding -> excluding There is a small typo in mp_to_radix.c. Should read `excluding` rather than `exluding`.
Steffen Jaeckel 5167f6c1 2020-11-30T16:03:46 Merge pull request #490 from libtom/fix-488 Follow-up of #489
Steffen Jaeckel 5d744e43 2020-09-20T18:07:28 update CI to bionic
Steffen Jaeckel bee1e995 2020-11-29T15:06:42 use heredoc instead of all those echo's
Steffen Jaeckel 34540acb 2020-11-29T15:03:41 fix building demos from makefile.shared
Steffen Jaeckel 9fa74009 2020-09-15T19:05:20 separate static and dynamic builds
Anonymous Maarten fa289f9d 2020-09-14T23:28:01 build and test with dll on MSVC
Steffen Jaeckel 34e16d3c 2020-09-13T19:06:43 allow testing of shared library * move jenkins' prng out of the library into the demo's. * add CI test for shared library
Steffen Jaeckel fa94aa20 2020-09-13T15:26:42 add travis job to compare symbols of dynamic libraries
Steffen Jaeckel 301e2c41 2020-09-13T14:59:39 Partially revert "enable building dll's using makefile.msvc" This partially reverts commit b206dde88e4affae07970782498afe9e3664ae30.
Steffen Jaeckel 646523e6 2020-09-13T14:19:30 add cutoff's to exported symbols
Steffen Jaeckel d138abc3 2020-09-13T14:19:10 split-up mp_rand.c
Anonymous Maarten 3ba04963 2020-09-11T16:04:19 enable building dll's using makefile.msvc
Steffen Jaeckel c18817cc 2020-09-19T16:04:20 Merge pull request #487 from czurnieden/DoS_sqrt_mod Added checks for input in mp_sqrtmod_prime that caused infinite loops
czurnieden fb305e09 2020-08-05T15:18:59 Additional input checks and a test for b \cong 0 (mod a) in test_mp_sqrtmod_prime to go along with it.
Steffen Jaeckel 44ee82cd 2020-04-30T13:56:56 Merge pull request #484 from Prince213/msvc-x86-mp_set_double-fix Add _M_IX86 for testing for MSVC x86
Sizhe Zhao 56dc9df1 2020-04-26T11:36:28 Add _M_IX86 for testing for MSVC x86
Steffen Jaeckel aa8b4571 2020-03-10T22:51:15 Merge pull request #477 from J08nY/fix/makefile-echo Fix clang detection when cross-compiling.
J08nY f01cc5d2 2020-02-21T11:44:15 Fix clang detection when cross-compiling. `echo` needs -e to output newlines, without the switch make complains: <stdin>:1:17: warning: extra tokens at end of #ifdef directive <stdin>:1: error: unterminated #ifdef and does not detect clang properly when cross-compiling.
Steffen Jaeckel fe382afd 2020-03-05T22:37:59 Merge pull request #478 from MasterDuke17/make_exptmod_with_modulus_1_always_0 Give correct values for invmod with modulus of 1
Daniel Green ea654566 2020-02-23T09:46:12 Give correct values for invmod with modulus of 1
Steffen Jaeckel ce4e6ae1 2020-03-05T14:25:43 Merge pull request #476 from libtom/fix-double-check Build+test bn_mp_set_double.c on more platforms
Steffen Jaeckel c1cf8073 2020-03-05T13:57:07 introduce MP_HAS_SET_DOUBLE
Steffen Jaeckel c5cb0c6f 2020-03-05T13:48:27 fix compile error on MSVC
Daniel Green 4e90f318 2020-02-09T11:06:53 Build+test bn_mp_set_double.c on more platforms Not all platforms/environments/architectures that support enough of IEEE 754 for the purposes of mp_set_double() actually support enough to legitimately define __STDC_IEC_559__, so only relying on that is too strict. Fixes https://github.com/libtom/libtommath/issues/159
Steffen Jaeckel ffd80665 2020-01-07T18:35:50 Merge pull request #471 from libtom/prevent-overflow Prevent overflow
Daniel Mendler ca6924b7 2019-12-23T11:12:42 add error code MP_OVF for integer overflow (too many digits)
Daniel Mendler 876c5fc3 2019-12-05T11:47:36 disable __func__ in c89 compilers
Daniel Mendler 40177e18 2019-12-05T11:47:36 test: print __func__
Daniel Mendler c375b038 2019-12-05T11:09:39 test cleanup; add randomized radix_size test
Daniel Mendler 08d281c4 2019-12-05T00:48:25 introduce MP_MAX_DIGIT_COUNT to prevent overflow
Daniel Mendler 3a744dc4 2019-12-05T00:33:53 s_mp_radix_size_overestimate: remove overflow check
Steffen Jaeckel 6ac0b0c1 2019-12-04T22:27:09 Merge pull request #469 from czurnieden/radix_overestimate_29bits Radix overestimate with 29 bits precision
Daniel Mendler 9d0bdc7e 2019-12-04T22:23:24 run the test always
czurnieden 1e65c0bf 2019-10-11T00:06:45 Introduction of a fast but slightly over-estimating radix_size