Commit Graph

52 Commits

Author SHA1 Message Date
Frank Denis
3fbbffc2c6 Check xmain() return code in tests. 2013-12-31 18:37:05 +01:00
Frank Denis
deaa893ce4 Add a test for blake2 with salt&personalization 2013-11-11 23:33:16 -08:00
Frank Denis
1ca05f6b16 Have sodium_memcmp(a,b,s) return -1 if a != b, document return value. 2013-10-30 06:47:13 -07:00
Frank Denis
d29dcf44ca Tell people that we are running the test suite. 2013-10-21 20:11:56 -07:00
Frank Denis
21f5f9790f If wintest.bat is run from srcdir, cd test/default 2013-10-21 20:07:05 -07:00
Frank Denis
f5e81693ee Fix wintest.bat usage 2013-10-21 16:31:19 -07:00
Frank Denis
d996d14f1f Import wintest.bat 2013-10-19 21:06:55 -07:00
Frank Denis
bd8cbd3175 Make curve25519-donna-c64 handle non-canonical points like the ref implementation. 2013-10-13 12:49:15 -07:00
Frank Denis
2c7aba48f3 Use arc4random() in tests if available. 2013-10-06 15:51:45 -07:00
Frank Denis
1a3786705e Add a sodium_bin2hex utility function. 2013-07-07 23:38:14 -07:00
Frank Denis
43132738d2 Add a pre-js script for providing /dev/urandom to tests in Javascript.
Not plugged to the build system yet.
2013-07-07 22:04:13 -07:00
Frank Denis
942c371d3c Use rand() instead of random() in regression tests. 2013-04-28 01:02:52 -07:00
Frank Denis
f16186671d Have "make distclean" remove *.res files 2013-04-27 16:42:37 -07:00
Frank Denis
404237d09b Fix "make check" target when compiled in a dedicated directory. 2013-04-27 11:43:26 -07:00
Frank Denis
cfe3f24964 sizes are unsigned. 2013-04-27 04:41:34 -07:00
Frank Denis
d923f3ef4b Sizes are unsigned 2013-04-27 04:34:36 -07:00
Frank Denis
0afc36c827 Tests: use size_t for sizes, not int.
Remove unused variables by the way.
2013-04-26 23:25:14 -07:00
Frank Denis
47de75e935 Keep ming Visual C++ happy 2013-04-26 21:52:21 -07:00
Frank Denis
de517b70d9 char vs unsigned char in the sodium_utils test 2013-04-26 21:51:59 -07:00
Frank Denis
4628a747ed Trim leading space in Makefile 2013-04-26 21:11:38 -07:00
Frank Denis
57a4552eb1 + aes256estream 2013-04-26 21:06:34 -07:00
Frank Denis
162b485cf6 printf can be a macro already, so #undef it 2013-04-25 23:25:39 -07:00
Frank Denis
1827e508ea Remove trailing spaces 2013-04-25 22:38:06 -07:00
Frank Denis
4c31bb5ef1 Add tests for sodium_*() functions. 2013-04-25 22:37:15 -07:00
Frank Denis
11d09e0d4e windows quirks are needed for secretbox8 test. 2013-04-22 13:17:37 -07:00
Frank Denis
b52f513f90 Untab, remove trailing spaces and other no-ops. 2013-04-21 17:32:09 -07:00
Frank Denis
9459a4b5ff Change the generichash API to better match other NaCl APIs
i.e. give a size right after the pointer.
2013-04-21 17:32:09 -07:00
Frank Denis
e56415489c Add some test vectors for the generichash streaming API 2013-04-21 17:32:09 -07:00
Frank Denis
d43309490a Add preliminary tests for crypto_generichash (blake2) 2013-04-21 17:32:08 -07:00
Frank Denis
220ad48353 Make the tests compileable from a separate directory. 2013-04-21 17:32:07 -07:00
Frank Denis
fc98102f2a sodium_reinit() and sodium_shutdown() are gone. 2013-04-21 17:32:05 -07:00
Frank Denis
47bc0aab79 sodium_init() doesn't take any options any more. 2013-04-21 17:32:04 -07:00
Frank Denis
faa399c3df Only include sodium.h in tests.
Tests should always be passing by just including that.
2013-04-21 17:32:04 -07:00
Frank Denis
fd11d8b7d7 Include sodium.h in cmptest.h and call sodium_init()/sodium_shutdown() 2013-04-21 17:32:04 -07:00
Frank Denis
6774b47cd4 Reintroduce shorthash, this time with the key... 2013-02-13 21:14:29 +08:00
Frank Denis
e5e2150919 Revert "Add crypto_shorthash() for non collision-resistant hash functions"
This reverts commit c8fe5c4afb.

Conflicts:
	.gitignore
	test/Makefile.am
	test/default/shorthash.c
	test/default/shorthash.exp
2013-02-13 20:33:17 +08:00
Frank Denis
5c946f9c61 Move tests to test/default and windows to quirks/windows.
test/default contains only tests using the default primitives
for a given operation. We need to add other tests as well.
2013-02-09 04:21:32 +08:00
Frank Denis
c8fe5c4afb Add crypto_shorthash() for non collision-resistant hash functions
Currently using siphash-2-4
2013-02-09 03:51:20 +08:00
Frank Denis
4c6e162c52 Remove libsodium-randombytes. 2013-01-21 12:46:40 -08:00
Frank Denis
87af79c629 Don't include randombyte - move it to a different library. 2013-01-21 11:32:34 -08:00
Frank Denis
048da52209 Correct libsodium path in the test Makefile 2013-01-20 19:18:39 -08:00
Frank Denis
1d30d34727 expected -> exp 2013-01-20 19:08:08 -08:00
Frank Denis
2345092aaa Rename .out files to .exp 2013-01-20 19:07:21 -08:00
Frank Denis
45188cfad1 Add windows-quirks.h and *.out files to the list of dependencies 2013-01-20 17:40:21 -08:00
Frank Denis
61775cc84d Add missing dependencies 2013-01-20 17:23:37 -08:00
Frank Denis
97d651b3a3 Include cmptest.h in all tests 2013-01-20 15:55:10 -08:00
Frank Denis
27b19131ae We should really include sodium/*.h, but back out the randombytes one for now 2013-01-20 15:48:55 -08:00
Frank Denis
46f10a2314 Declare main() correctly 2013-01-20 15:48:08 -08:00
Frank Denis
f82e550518 Rename test-randombytes to randombytes to be consistent 2013-01-20 15:44:05 -08:00
Frank Denis
a1fa3e6438 Add remaining tests 2013-01-20 15:41:17 -08:00