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
Steffen Jaeckel
7f91e5ae65
requiring 'name != NULL' in find_cipher_any() doesn't make sense
2017-06-08 22:20:45 +02:00
Karel Miko
7aaa423004
tuning makefiles - mingw, msvc, cygwin
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
b51a3f6dab
update notes/hashsum_tv.txt
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
8c1d55f4c0
fix error when compiling w/ LTC_CLEAN_STACK but w/o LTC_FAST
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
40747cfcfd
add a build-run with debugging-options
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
b83f9472c0
Update makefiles
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
b78c5551f7
move compare_testvector()
implementation to the library
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
e1a1145802
rename 'testprof/' to 'tests/'
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
07ffa0f1a2
remove tomcrypt_prof test-only library
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
201681ee3b
merge testprof/timing_test.c into demos/timing.c
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
70a27a852e
Update makefiles
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
8ef805817c
rename time_cipher[2-4]? appropriately
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
9d4094b8e9
rename x86_prof.c to timing_test.c
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
abe8d26246
move epoch_usec() to test.c
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
f7d3c2bfa1
merge testprof/test_driver.c to testprof/common.c
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
0a23c6d32e
also check for cipher descriptors
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
1c4c84e7f9
fix tv_gen
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
3f66f7df83
Update makefiles
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
eaf20dda5b
demos must now link against testprof/common.o
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
9b8fff6260
add testprof/common.c
...
so we can remove all the duplicate registration implementations
...and we can put some other shared stuff in there as well
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
db5438ca55
don't build openssl-enc for tests
2017-06-08 22:19:48 +02:00