Frank Denis
|
1cce9b1e00
|
argon2i strings are variable length; check that they are zero-padded
|
2016-01-08 16:55:08 +01:00 |
|
Frank Denis
|
cfd597298f
|
Bring back tests vectors for argon2 strings
|
2016-01-06 15:36:36 +01:00 |
|
Frank Denis
|
29fb06cd23
|
Check for crypto_pwhash_*limit_moderate() presence
|
2015-12-30 11:59:15 +01:00 |
|
Frank Denis
|
77a61b8ad7
|
Test the high-level crypto_pwhash() functions
|
2015-12-29 21:53:56 +01:00 |
|
Frank Denis
|
654a2b3f95
|
Shorten a few test argon2i test vectors for V8
This is enough to reproduce an bug with Chrome
|
2015-12-29 21:06:23 +01:00 |
|
Frank Denis
|
61c5b4a35c
|
argon2i test: remove tv3 for now; it's too much for web browsers
Proper test vectors will be reintroduced later
|
2015-12-29 19:16:31 +01:00 |
|
Frank Denis
|
c48eaad3cd
|
Don't require too much memory for the pwhash_argon2i() test
so that the Javascript version can run in web browsers
|
2015-12-29 17:54:21 +01:00 |
|
Frank Denis
|
7a95e921ac
|
Add tests for pwhash_argon2i
|
2015-12-29 17:12:23 +01:00 |
|
Frank Denis
|
14bf02af88
|
Rename the pwhash test as as pwhash_scrypt
|
2015-12-29 16:14:19 +01:00 |
|
Frank Denis
|
d839d74c89
|
lcov exclusion
|
2015-12-25 02:09:12 +01:00 |
|
Frank Denis
|
9784038ad0
|
Check crypto_box_detached() with a small order pk
|
2015-12-25 02:01:51 +01:00 |
|
Frank Denis
|
2f1cec7352
|
Test crypto_box_beforenm() with a small order pk
|
2015-12-25 02:00:01 +01:00 |
|
Frank Denis
|
b80d037b4d
|
Check that crypto_box[_beforenm] fails with a small order pk
|
2015-12-24 19:35:05 +01:00 |
|
Frank Denis
|
60d05339fd
|
Constify
|
2015-12-24 19:00:42 +01:00 |
|
Frank Denis
|
386ce83df1
|
Test crypto_onetimeauth_update() with a null size
|
2015-12-22 14:32:14 +01:00 |
|
Brian Silverman
|
63b82c28e9
|
Use the right type for sizeof's result
|
2015-12-16 22:54:06 -05:00 |
|
Frank Denis
|
b977a53d1d
|
printf("%llu") is not expected work on mingw32/Windows XP.
|
2015-12-10 16:38:26 +01:00 |
|
Frank Denis
|
054579d3bb
|
Remove dead globals, bump the number of rounds in the box{7,8} tests
|
2015-12-09 01:43:57 +01:00 |
|
Frank Denis
|
d9e38003dc
|
Reduce the number of rounds in the box7 test, use guarded memory
|
2015-12-09 01:41:30 +01:00 |
|
Frank Denis
|
fb09514949
|
Shorten the verify1 test
|
2015-12-09 01:37:58 +01:00 |
|
Frank Denis
|
ea43d1b18b
|
Shorten auth7
|
2015-12-07 17:41:20 +01:00 |
|
Frank Denis
|
4bf74c7574
|
C++ compat
|
2015-12-07 10:46:03 +01:00 |
|
Frank Denis
|
48b9c4e75c
|
Ignore test/default/browser, import HTML template
|
2015-12-07 09:57:49 +01:00 |
|
Frank Denis
|
43c25a343b
|
Reduce box8 even more
|
2015-12-07 09:43:34 +01:00 |
|
Frank Denis
|
8e54dd6d5f
|
Use guarded memory for the box8 test
|
2015-12-07 09:32:53 +01:00 |
|
Frank Denis
|
3e2bef97dc
|
Reduce a few expensive tests
|
2015-12-07 09:09:04 +01:00 |
|
Frank Denis
|
7ada62b1ff
|
Reduce some test cases, generate html test files
|
2015-12-07 08:58:35 +01:00 |
|
Frank Denis
|
e262425a4a
|
Reduce even more, for Chrome
|
2015-12-07 02:16:22 +01:00 |
|
Frank Denis
|
1600ccfdda
|
On a web browser, reduce the number of vectors for the sign test
|
2015-12-07 02:12:44 +01:00 |
|
Frank Denis
|
0eaa2294a4
|
Revert "Output signatures prefix in the signature test"
This reverts commit c73cbc42d9 .
|
2015-12-07 02:04:22 +01:00 |
|
Frank Denis
|
c73cbc42d9
|
Output signatures prefix in the signature test
|
2015-12-07 01:57:53 +01:00 |
|
Frank Denis
|
3d1e11fe81
|
Support a BROWSER_TESTS env variable to build tests for browsers
|
2015-12-07 01:44:33 +01:00 |
|
Frank Denis
|
ec6b86611f
|
More checks for sodium_add() (overlaps) and sodium_increment()
|
2015-12-06 19:06:27 +01:00 |
|
Frank Denis
|
27ce39ebbe
|
Add a test with a null message in box_easy()
|
2015-11-27 14:18:43 +01:00 |
|
Frank Denis
|
b482401b46
|
Add tests with null message in secretbox_easy.c
|
2015-11-27 14:13:21 +01:00 |
|
Frank Denis
|
ba6833cc16
|
Use sodium_malloc() for the secretbox_easy2 test
|
2015-11-27 12:30:13 +01:00 |
|
Frank Denis
|
2e5c94a34f
|
Use guarded memory for the box_easy2() test
+ non-deterministic buffer sizes
|
2015-11-27 12:13:58 +01:00 |
|
Frank Denis
|
4ec7fb481d
|
Remove generichash tests with invalid parameters
They must be reintroduced at some point, probably by overriding
the `abort` symbol.
|
2015-11-27 11:00:29 +01:00 |
|
Frank Denis
|
1c8e34577f
|
Less deterministic crypto_verify_*() tests
|
2015-11-25 14:10:36 +01:00 |
|
Frank Denis
|
d8b9b395a3
|
Mark everything as static in tests
|
2015-11-23 16:07:13 +01:00 |
|
Frank Denis
|
5e17a7adf8
|
Check that scalarmult() returns -1 with a point of small order
325606250916557431795983626356110631294008115727848805560023387167927233504
is a point of order 8
|
2015-11-17 11:07:37 +01:00 |
|
Frank Denis
|
2bc5874874
|
Check that the output of X25519 is not the all-zero value
Return -1 if this happens, and mark crypto_scalarmult() as warn_unused_result
Mark dependent functions with warn_unused_result as well
|
2015-11-17 11:07:33 +01:00 |
|
Frank Denis
|
9337ecfa60
|
Add tests for sodium_add(), more tests for sodium_increment() and is_zero()
|
2015-11-16 23:22:01 +01:00 |
|
Frank Denis
|
7561a25d5a
|
Add a is_zero() helper
|
2015-11-13 01:48:34 +01:00 |
|
Frank Denis
|
debed38314
|
Check a return value in the secretbox_easy2 test
|
2015-11-01 14:45:35 +01:00 |
|
Frank Denis
|
17bcbbbd45
|
Force functions whose result must be checked to be checked
|
2015-11-01 13:57:51 +01:00 |
|
Frank Denis
|
26fdfec99b
|
Add sodium_runtime_has_ssse3() and sodium_runtime_has_sse41()
|
2015-10-31 23:42:44 +01:00 |
|
Frank Denis
|
84695c8d42
|
Make sodium_compare() work on little-endian numbers as expected
|
2015-10-31 22:36:54 +01:00 |
|
Frank Denis
|
a1e4d3df3f
|
Add AES256-GCM tests for decryption of truncated ciphertext
|
2015-10-30 19:47:47 +01:00 |
|
Frank Denis
|
688e1c4742
|
C++ compat
|
2015-10-26 22:48:56 +01:00 |
|