Commit Graph

1229 Commits

Author SHA1 Message Date
Steffen Jaeckel
a0e5c2e4ff add some makefile docs 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
3995f971d7 make sure to use makefile.shared on Mac 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
048cbc55b0 disable yet another warning 2017-06-15 00:46:50 +02:00
Karel Miko
2cd69fb541 improved helper.pl (check mandatory comments - not included in "--check-all" yet) 2017-06-14 17:16:26 +02:00
Steffen Jaeckel
23d5a02ecd Merge pull request #217 from libtom/scan-build
Travis-CI: clang static analyzer
2017-06-14 09:19:19 +02:00
Steffen Jaeckel
31ddf7c894 ...
https://www.youtube.com/watch?v=6bbIBs0P2t0
2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ac41d07247 try libtommath from ubuntu 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ea08fbb777 use libtommath from debian sid 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ba94b536be this is a horrible PR 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
1ee2662ab5 only run scan_build.sh once 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
52672bc358 m( 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
9baba0a83a fix usage of makefile.unix 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ebfd164246 alright, let's also use ltm from packagecloud 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
3bb9193d6f alright, let's try if upgrading to trusty helps... 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
75e00e097c well, then install a new clang version and see... 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ff2de0b07a looks like precise doesn't have scan-build under that name
...but we should be able to find it somewhere in /usr/bin/
2017-06-13 18:41:09 +02:00
Steffen Jaeckel
742b4cee78 add clang scan-build 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
bda493d770 Merge pull request #226 from fperrad/20170609_lint
some linting

[skip ci]
2017-06-13 12:17:16 +02:00
Steffen Jaeckel
caa05540b7 Merge pull request #172 from libtom/test_tfm
Run tests for tomsfastmath

[skip ci]
2017-06-12 23:08:10 +02:00
Francois Perrad
0bc0d55245 refactor REGISTER_* 2017-06-12 20:07:23 +02:00
Francois Perrad
ec51f880b5 Right hand side of assignment needs parenthesis 2017-06-12 20:07:23 +02:00
Francois Perrad
f40bda7cb3 fix indentation 2017-06-12 20:07:23 +02:00
Steffen Jaeckel
f45f2f4faf only create coverage for ltm build 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
a9838f7745 fix linking to tomsfastmath & clean-up 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
104a451def use packagecloud repo to install tfm 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
e2af986085 make output verbose again 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
fec05471ae the latest tfm version has fp_rand() available, so we can test this now 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
a4671110d5 Merge pull request #198 from libtom/test/pthread
Travis-CI: a new build with -DLTC_PTHREAD

[skip ci]
2017-06-12 18:44:01 +02:00
Steffen Jaeckel
5de7e58e84 disable yet another clang warning 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
73934ad2fd add ld option -pthread when LTC_PTHREAD is enabled 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
48e4ec07be use LTC_ARGCHK() for all mutex operations 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
3b4e5df858 create separate no_prng instances
now they shouldn't collide anymore and can always be unregistered
2017-06-12 17:19:43 +02:00
Steffen Jaeckel
42a82ce3ed fix valgrind errors
Uninitialized key caused the following error:

Conditional jump or move depends on uninitialised value(s)
   at ...: __memcmp_sse4_1 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   ...
2017-06-12 17:19:43 +02:00
Steffen Jaeckel
a06cba4cb5 fix tests when compiled for pthread 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
b38cf104f0 move prng-tests away from cipher_hash_test() 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
904366eb0f check that all ciphers/hashes/prngs are unregistered 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
be9c598ee7 add new travis tests with pthread support 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
e6cd8e8112 fix failing tests with pthreads enabled 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
d6a77f5d6d implement pthread support for tests 2017-06-12 17:19:43 +02:00
karel-m
4a6d107227 Merge pull request #225 from libtom/pr/fix-114-dh-primes
Better DH primes
2017-06-12 17:12:33 +02:00
Karel Miko
4f12e41d29 fix trailing ; 2017-06-12 16:35:27 +02:00
Karel Miko
114b694735 trying to fix dh_shared_secret - #119 2017-06-11 23:20:46 +02:00
Karel Miko
bc4236d90f tuning dh_make_key 2017-06-11 21:12:14 +02:00
Karel Miko
361778d2ac another dh_make_key redesign 2017-06-11 19:43:08 +02:00
Karel Miko
71884788e3 fix warning: comparison between signed and unsigned integer 2017-06-11 10:12:18 +02:00
Karel Miko
532c511f52 improved dh_make_key 2017-06-10 23:02:30 +02:00
Steffen Jaeckel
c9f4628693 don't call rng_make_prng() from dh_make_key()
While testing with multiple threads I had spurious errors where some tests
can't read from the PRNG.
If I tracked it down correctly that's caused by `dh_make_key()`
calling `rng_make_prng()` which re-initializes the selected PRNG.

I like the idea of "refreshing" the PRNG with entropy from a hopefully
secure RNG before generating a new key, but I don't think it's the duty
of a key-generation function to ensure that, but merely the application
that implements key-generation.
2017-06-09 18:56:04 +02:00
Steffen Jaeckel
e3329bec26 make it possible to pass a single timing test to run 2017-06-09 18:33:51 +02:00
Steffen Jaeckel
e60d2076c5 resurrect DH in timing 2017-06-09 18:33:51 +02:00
Steffen Jaeckel
f31d8ff864 implement smaller private key sizes 2017-06-09 18:33:51 +02:00