Commit Graph

152 Commits

Author SHA1 Message Date
Karel Miko
c31102bc0e fix warning: expected "mp_digit *" but argument is of type "long unsigned int *" 2015-10-30 18:04:33 -04:00
Steffen Jaeckel
1f8894790b update makefiles etc. 2015-10-30 18:04:33 -04:00
Karel Miko
1c85a28372 adding bn_mp_sqrtmod_prime.c 2015-10-30 18:04:33 -04:00
Tom St Denis
079b0f65a9 Getting ready for v0.43.0 release
Also updated my email address...

Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-30 17:55:29 -04:00
Tom St Denis
7916c4035b Fix parenthesis in bn_mp_div.c to correctly return error code if init fails.
Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-30 17:49:09 -04:00
Tom St Denis
e50d8afe32 Add ability to disable silent builds.
Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-30 17:45:34 -04:00
Donald Chan
676e7ea488 Adding LTM_NO_FILE flag
Certain embedded implementatino does not have FILE defined, adding
LTM_NO_FILE flag to avoid compiler errors

Signed-off-by: Donald Chan <hoiho.chan@gmail.com>
Reviewed-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-30 17:41:22 -04:00
Tom St Denis
b6a484ff4a Make the build output cleaner so diagnostics are easier to spot
Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-28 08:59:29 -04:00
Steffen Jaeckel
036d697caa makefile: add 'coverage' make target 2015-04-25 14:13:16 +02:00
Steffen Jaeckel
39e348b2e2 makefile: add LFLAGS variable when static linking 2015-04-25 14:12:32 +02:00
Steffen Jaeckel
cb085f06cf demo: read from urandom if someone requests real random data 2015-04-18 15:06:28 +02:00
Steffen Jaeckel
ac4550ccbd testme.sh: improve a bit
- add parameter when calling that will be forwarded to make
  (e.g. to give the correct -j# option for your CPU)
- timeout after running the tests for 2 minutes, assuming something went
  wrong, but don't cancel the rest of the tests
- add compilation with clang (if available on the system)
2015-04-18 15:06:28 +02:00
Steffen Jaeckel
5eb6ebbb23 makefiles: improve a bit 2015-04-18 15:06:28 +02:00
Steffen Jaeckel
80e0862e83 makefile: clean gcov output 2014-12-14 19:44:20 +01: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
35488c9e84 fix errors in demo/demo.c found by clang
CC='clang' CFLAGS='-fsanitize=address,undefined -O3 -g  -fPIC -I./'
2014-12-14 12:35:46 +01:00
Steffen Jaeckel
0fd5e6c17f add testme.sh 2014-12-11 14:59:35 +01:00
Steffen Jaeckel
784077d380 Merge remote-tracking branch 'carbin/arc' into develop
This closes #28
2014-12-11 14:12:14 +01:00
Carlin
5d1096b0bd use arc4random() instead of rand() on *BSD 2014-12-12 01:42:30 +13:00
Steffen Jaeckel
9d697d4686 fix compilation with MP_8BIT or MP_16BIT 2014-12-10 19:01:12 +01:00
Steffen Jaeckel
d4cccd52d1 udpate makefiles etc. 2014-12-10 18:59:56 +01:00
Steffen Jaeckel
9d83fce77e add tests 2014-12-10 18:59:42 +01:00
Steffen Jaeckel
0e3d3ad29d add mp_get_long_long() and mp_set_long_long() 2014-12-10 18:59:31 +01:00
Steffen Jaeckel
f88e6a042a replace mp_set_long() implementation by macro 2014-12-10 18:32:44 +01:00
Steffen Jaeckel
5d3ee880aa less noise plz 2014-12-10 18:27:03 +01:00
Steffen Jaeckel
e5e9382bc2 Merge branch 'moritz/get-set-long' into develop
This closes #26
2014-12-10 17:22:53 +01:00
Steffen Jaeckel
cf04521695 update makefiles etc. 2014-12-10 17:21:14 +01:00
Steffen Jaeckel
158e326612 add tests for mp_set_long() and mp_get_long() 2014-12-10 17:20:15 +01:00
Steffen Jaeckel
5a2a00ffba fix compiler warning when compiling with "-mx32" option 2014-12-10 16:53:06 +01:00
Steffen Jaeckel
940bef18cd fix macros 2014-12-10 16:53:06 +01:00
Steffen Jaeckel
ae307cd887 fix compiler warning 2014-12-10 16:53:06 +01:00
Moritz Lenz
6df187aea4 Add set_long and get_long functions
They work on platform-dependent long ints
2014-12-10 16:53:06 +01:00
Steffen Jaeckel
a263647f23 add new make target 'test_standalone' 2014-10-18 20:20:30 +02:00
Steffen Jaeckel
d2458e35e1 update README 2014-10-18 20:20:07 +02:00
Andrea Faulds
ef15300cdf initial revision 2014-10-18 20:16:49 +02:00
Steffen Jaeckel
d71719853a update after removing balance multiplication 2014-10-18 18:56:56 +02:00
Steffen Jaeckel
b425b0ea1f Revert "balancing multiplication like that in Ruby 1.9"
This reverts commit e68439aae1.

Conflicts:
	bn_mp_balance_mul.c
	makefile
2014-10-18 18:54:06 +02:00
Steffen Jaeckel
9ca37ca01c mtest vs. test: add possibility to exit testing
'mtest' can now optionally only run a given amount of loops.
the first parameter <n> when invoking 'mtest' is considered to determine
the amount
when <n> is in the range -63..-1: mtest will run 2^-n runs
when <n> is > 0: mtest will run n runs
else: mtest will exit immediately
2014-10-18 18:52:46 +02:00
Steffen Jaeckel
545980169c add target "new_file" to makefile 2014-10-14 14:38:41 +02:00
Steffen Jaeckel
634f96f7c3 mtest: I like predictable random for testing 2014-10-14 14:38:41 +02:00
Steffen Jaeckel
5c5d600a82 demo: calm compiler warnings & improve a bit 2014-10-14 14:38:41 +02:00
Steffen Jaeckel
e581d078f6 mtest: fix compiler warnings 2014-10-14 14:38:41 +02:00
Steffen Jaeckel
410ae3951e trim trailing spaces 2014-10-14 14:38:41 +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
4f2db5fa8f add "updatemakes" from libtomcrypt 2014-10-13 15:49:02 +02:00
Steffen Jaeckel
da2fc240ef deterministic build of poster.pdf 2014-09-28 14:46:09 +02:00
Steffen Jaeckel
41017efddd deterministic build of bn.pdf 2014-09-28 14:46:00 +02:00
Steffen Jaeckel
61d8c8aa42 Merge branch 'feature/timing_resist' into develop 2014-09-28 13:59:17 +02:00
Steffen Jaeckel
52bb535ff7 demo: test both mp_n_root() implementations 2014-09-28 13:33:59 +02:00