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
Karel Miko
f46b32ba2e
better DH primes
2017-06-09 14:14:07 +02:00
karel-m
3922868082
Merge pull request #224 from libtom/pr/fix-154-dsa-api
...
Do not expose dsa_make_params as a public API
2017-06-09 14:13:04 +02:00
Karel Miko
2a883b44c7
do not expose dsa_make_params as a public API
2017-06-09 13:01:30 +02:00
Steffen Jaeckel
4fa9e96d49
Merge pull request #157 from libtom/feature/rsa_import_pkcs8
...
RSA import pkcs8
[skip ci]
2017-06-09 11:38:35 +02:00
Steffen Jaeckel
ef450fe14a
fix error handling
2017-06-08 23:34:16 +02:00
Karel Miko
2d8816607b
update makefiles
2017-06-08 23:34:16 +02:00
Karel Miko
52a496e9e1
rsa_import_pkcs8 - passwd is now "const void *"
2017-06-08 23:34:16 +02:00
Karel Miko
d96f4bdcff
rsa_import_pkcs8
2017-06-08 23:34:16 +02:00
Steffen Jaeckel
2816da42af
Merge pull request #219 from libtom/feature/common
...
Introduce testprof/common.c
[skip ci]
2017-06-08 23:30:28 +02:00
Karel Miko
d72d7d1d32
tuning makefile.mingw+msvc
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
f47a71bc6c
Update makefiles
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
5a3a27bbd6
rename der_tests to der_test
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
4bbce780c4
always provide compare_testvector()
as a function
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
ad45277745
use print_hex() in rsa_test()
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
e45e02d635
Update makefiles
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
4e971a8518
don't use print_hex() from library
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
fe0b72ef51
remove dependency of demos to tests/common
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
da3b61c7b6
re-structure tests/common.c
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
4ceb82bf54
add register_all_{ciphers,hashes,prngs}()
2017-06-08 22:20:45 +02:00