kc3-lang/libtommath/demo

Branch :


Log

Author Commit Date CI Message
thodg 008f3602 2025-11-01 13:55:05 ws
thodg 1f9d3e8e 2025-10-21 09:14:17 remove config.h and use -D
cb1b2dc8 2019-10-15 14:04:32 mp_log_u32: return uint32_t
c9d41fba 2019-10-15 10:40:40 rename mp_ilogb() to mp_log_u32()
1cc02f2d 2019-10-14 15:09:42 fix build of timing.c
b4f7d8d4 2019-10-09 20:41:17 test: use malloc/free tests are library consumers, MP_MALLOC is an internal macro
6e3dae56 2019-10-08 21:47:57 add MP_BUF error
b6813a41 2019-09-27 03:40:08 replace mp_export/import by mp_pack/unpack
71d1b7b9 2019-09-08 23:29:44 make mp_to_radix return the count of characters of the converted number
d68e2877 2019-10-02 05:47:04 bugfix for an edgecase
abdb0334 2019-09-25 00:29:19 Refactored functions to read and write binaries and added "maxlen"
4ebdaca2 2019-09-05 14:24:42 "fix" warnings
baff51e9 2019-09-05 14:23:22 allow to run specific timing tests
47ab9c60 2019-09-05 14:19:17 fix printf
f8d64c64 2019-09-10 16:05:27 create `mtest_opponent` instead of alt version of `test`
234d474f 2019-09-07 15:01:46 only run tests if the module is available
75c52a89 2019-09-05 17:12:05 be nice and tell when it's hex output did you know that 0x35 is equal to 53? ... ;-)
54661db6 2019-09-05 17:10:48 allow RSA superclass to be built with tests
9eecab7b 2019-09-05 16:41:36 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.
72f92519 2019-09-03 10:59:32 fix last occurrences of `mp_toradix()`
8bb11ded 2019-09-02 21:05:04 included tests for mp_prime_next_prime
6cd570d0 2019-09-02 17:52:36 use `mp_to_radix` etc.
8c1b296e 2019-04-08 23:48:39 add feature detection macro MP_HAS
ca89e9c0 2019-07-03 13:10:05 rename mp_root/mp_expt to mp_*_u32
71696549 2019-05-29 20:36:18 deprecate mp_expt_d and mp_n_root in favor of mp_expt and mp_root
0db64fc8 2019-07-03 14:45:14 Rename bn_get_magxx -> bn_get_mag_uxx. Documentation updated too
ea3353b6 2019-06-13 15:44:00 Simplify test-cases, by using mp_set_l. Also fix use of types in 2 other files
5302b907 2019-06-06 21:06:06 use MP_SIZEOF_BITS
dfbb5ecd 2019-06-06 16:22:54 MSVC compile: higher warning-level -Wall, but warning-free
c7314fa4 2019-05-25 06:42:01 deprecate mp_n_root_ex and mp_expt_d_ex These functions were introduced to give some timing guarantees. However the guarantees are too weak to be useful. The functions seem to be unused essentially by downstream users.
0e1a0e65 2019-05-24 11:27:03 also test mp_shrink()
bcec605a 2019-05-22 15:34:49 deprecate mp_prime_is_divisible and ltm_prime_tab * it is an implementation detail used for prime testing * there is upcoming work by @czurnieden regarding a generalised prime sieve * furthermore remove jacobi test (replaced by kronecker)
0a9f5e9b 2019-05-24 10:21:54 use u32 i64 suffix
d7e1cb4a 2019-05-24 00:15:11 another proposal: use _ul and _l for the long macros
b58c9966 2019-05-23 23:39:47 use int32 and uint32 instead of sint and uint
3289c959 2019-05-20 10:41:06 introduce various mp_set_sint/mp_set_uint functions with precise types
1af0de1f 2019-05-20 19:11:25 deprecate mp_tc_(and|or|xor) in favor of mp_(and|or|xor) * same behavior for positive numbers * generalisation for negative numbers, treating them as two complement * improve algorithm, iterate once over the digits, manually perform two complement * simplify mp_add_d, mp_sub_d * functions are safe in case of a==c or b==c * renamed mp_tc_div_2d to mp_signed_rsh (signed right shift)
0b840b78 2019-05-17 20:53:24 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.
03ca7bcd 2019-05-20 23:33:35 added tests for Karatsuba and Toom-Cook 3-way
51cda5b8 2019-05-19 09:55:14 use correct amount of MR trials in tests
cb3ff8c2 2019-05-19 09:54:25 improve coverage
150c47cc 2019-05-19 16:36:53 refactor literal suffix with u lowercase
f55f0a9e 2019-05-18 09:28:33 fix some usages of enum types
56e7a401 2019-05-13 02:46:11 deprecate mp_jacobi
198418ba 2019-05-14 20:39:33 bugfix: don't revert to platform rand source, but to jenkins source!
4534056c 2019-05-13 00:22:18 use enums mp_err, mp_ord, mp_bool, mp_sign * MP_USE_ENUMS enables enums * Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined * 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined
f85bd31e 2019-05-12 17:06:40 fix undefined behavior in labs
2a2e2716 2019-05-12 11:33:17 move jenkins prng to bn_s_mp_rand_jenkins.c
8d71a9e3 2019-05-11 00:19:28 travis: add -fsanitize=undefined
7365442a 2019-05-10 23:59:46 No grow necessary in mp_set_int* functions * mp_set_int* always return MP_OKAY * remove return checks for mp_set_int* * introduce MP_MIN_PREC
adf9605d 2019-05-09 03:28:49 add warn_unused_result, found one missing check!
0669e92e 2019-05-08 20:18:53 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.
1a12486d 2019-05-08 21:08:16 add mp_rand test
eedf1624 2019-03-07 15:01:45 allow filtering of tests executed
44d03a6f 2019-05-07 09:45:38 deprecate LTM_PRIME_* macros in favor of MP_PRIME_*
250751be 2019-05-07 09:32:59 tommath.h: do not expose stdlib.h
e45f75fd 2019-04-13 08:46:57 deprecate DIGIT_BIT, use MP_DIGIT_BIT
e8f56cc4 2019-04-05 11:37:49 enable -Wconversion and -Wsign-conversion on travis * no changes to the library code * conversion issues in the demo testsuite fixed * add CONV_WARNINGS and enable the warnings only for clang-7 (for now) * disable Wsystem-headers if Wconversion is enabled, to avoid warnings from the system headers
fbfcb661 2019-04-12 14:56:29 apply rename
35311aea 2019-04-03 23:50:57 added function mp_ilogb
27ca25cb 2019-04-06 18:55:43 added multiplcation balancing for the Toom-Cook algorithms
70a30ae7 2019-04-07 02:29:28 remove footers
984d3ff6 2019-04-01 03:41:26 changed seed to make nth-root usable
0ed98cf1 2019-04-04 12:55:39 removed tracing
769218cc 2019-04-03 18:59:09 additional functions mp_incr and mp_decr
cb1eb161 2019-04-04 07:58:07 run `make astyle` [skip ci]
03655127 2019-03-06 15:09:32 parameter with name in prototype
15a1adc2 2019-03-06 15:08:48 literal suffix
00a1bcd6 2019-03-04 02:00:28 demo: better ndraw
1fc7d20d 2019-03-04 01:56:06 opponent/test.c: move ndraw to main.c
12b41bbe 2019-03-04 01:42:05 opponent.c: forgot missing printf("\n") from _cleanup. reason for test failures.
03b319ca 2019-03-03 23:19:52 opponent.c: get rid of global variables and remove cleanup
3f42b6a7 2019-03-03 23:24:15 test/opponent.c: add todo comments
674fdddb 2019-03-03 23:16:09 remove duplicate T(mp_tc_div_2d)
cd1570bb 2019-03-04 01:02:22 split test suite
fcea5e3c 2019-01-22 08:59:30 Merge pull request #149 from czurnieden/develop Added overflow check in mp_prime_is_prime and some verbosity in demo.c (cherry picked from commit 55a7af3d62cbbdd174276c4ee8117b57777ce634)
9c2863da 2019-01-17 12:52:26 re-use the same code pattern
71b2d2ad 2019-01-17 12:42:58 print error-message instead of error-code
5aada1b9 2019-01-17 10:54:21 preserve original prime and print it as well
390555f3 2019-01-16 22:45:01 Added overflow check in mp_prime_is_prime and some verbosity in demo.c
648fbcef 2018-12-31 12:08:12 run make format
81396317 2018-12-30 22:35:03 reg. #143 added test to demo.c
ab074176 2018-12-27 09:38:26 explicit condition
f1f67626 2018-12-27 09:24:25 conditional definition of FGETS
2bde5bb5 2018-12-27 09:34:11 semicolon
c63ce5bf 2018-12-27 09:21:12 fix indentation
b6fa97c5 2018-12-27 09:19:57 explicit operator precedence
ea44272d 2018-12-27 09:12:22 always use #if LTM_DEMO_TEST_VS_MTEST != 0
efda3c0e 2018-12-27 09:10:09 declare cnt only when useful
4f902d9f 2018-12-27 09:02:31 remove useless assignment of cnt
3ed52404 2018-12-25 15:15:30 `make astyle` + some manual adjustments
e6f353b4 2018-12-08 17:46:08 add mp_prime_is_prime to timing demo... ... it's disabled per default for now...
3ec93dab 2018-12-12 00:14:05 bugfix in bn_mp_kronecker.c, cleanup and formatting in div. files
a2e15e2d 2018-05-05 03:20:39 Added tests to demo.c, switched off Lucas-Selfridge because it failed a test, and changed MP_8BIT handling in mp_prime_is_prime
dc150614 2018-12-07 20:24:41 renamed variables in demo/demo.c shadowning another one
d7f124f5 2018-12-02 13:12:30 avoid c++ comments
17f382c5 2018-11-26 12:32:05 change C++ comments to C style
2ab527b7 2018-09-10 18:51:26 add mp_get_double, mp_set_double
a829b87b 2018-09-22 16:36:56 add testcase of #118
eebbcf06 2018-09-10 18:48:58 add mp_complement, mp_tc_div_2d, mp_tc_and, mp_tc_or, mp_tc_xor