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
Steffen Jaeckel
08a461b39c
also build openssl-enc
2017-06-08 21:32:10 +02:00
Steffen Jaeckel
4929860641
fix file modes
2017-05-31 01:57:40 +02:00
Steffen Jaeckel
1de3f2a1f6
correctly NOP
...
there's still mac_test() which doesn't NOP correctly but who cares anyway?
2017-05-30 11:20:18 +02:00
Steffen Jaeckel
f1118b4647
Merge pull request #222 from bmwiedemann/develop
...
sort input files
2017-05-29 18:18:57 +02:00
Bernhard M. Wiedemann
704055810f
sort input files
...
when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would differ.
See https://reproducible-builds.org/ for why this matters.
2017-05-29 14:58:07 +02:00
Steffen Jaeckel
04573d8100
Merge pull request #221 from ksherlock/echo-n
...
echo -n portability
2017-05-24 09:46:02 +02:00
Kelvin Sherlock
9913c1dcb8
AIX and OS X (and maybe BSD) sh has a built-in echo which doesn’t support the -n flag (OS X sh is actually bash but it doesn’t support -n based on compile-time flags and the POSIXLY_CORRECT environment variable).
...
AIX /bin/echo doesn’t support -n.
AIX echo and OS X /bin/echo support \c to prevent a trailing newline but linux echo (bash builtin and /bin/echo) don’t support it unless you also use the -e flag (which is not support by AIX /bin/echo or OS X sh or /bin/echo).
The BSD echo man page suggests using printf to avoid trailing newline, which is available on linux, OS X, and AIX.
2017-05-22 17:30:30 -04:00
Steffen Jaeckel
88eec86d1a
Merge pull request #220 from ksherlock/compare_testvector
...
replace XMEMCMP with compare_testvector
2017-05-22 21:50:04 +02:00
Kelvin Sherlock
a8d81a7214
fix sha3 test numbers
2017-05-21 15:32:16 -04:00
Kelvin Sherlock
30f8aaad8c
replace XMEMCMP with compare_testvector, other consistency cleanup in testing code.
2017-05-14 22:17:59 -04:00
Steffen Jaeckel
4efe229726
Merge pull request #208 from libtom/improve/makefiles
...
Re-work, improve & fix makefiles
2017-05-11 23:56:47 +02:00
Steffen Jaeckel
a12b97f84e
travis doesn't seem to provide lcov...
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
90d5fe5bdb
re-format .travis.yml
...
no sudo required to gem install
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
56283c947a
improve coverage creation
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
6a4978ef5e
better EXTRALIBS
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
81f0297285
small fix-ups
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
7379c94f0a
merge .include and .common makefiles
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
2c27aee5d4
fixup df733f79fa
2017-05-11 23:04:37 +02:00