Commit Graph

1914 Commits

Author SHA1 Message Date
Frank Denis
04c7c3637e Don't refine SODIUM_C99 if it has already been defined 2015-12-11 00:57:47 +01:00
Frank Denis
2d589f78be Reorder struct members to keep values of the same type together 2015-12-11 00:26:32 +01:00
Frank Denis
bc371880d8 salsa20random stream struct members must match initializers
for compatibility with old non-C99 compilers.
Spotted and reported by @sneves
2015-12-11 00:10:19 +01:00
Frank Denis
b977a53d1d printf("%llu") is not expected work on mingw32/Windows XP. 2015-12-10 16:38:26 +01:00
Frank Denis
e36400aa30 __attribute__((...)) -> __attribute__ ((...)) 2015-12-10 11:26:14 +01:00
Frank Denis
e7d9129729 Run make distclean, not just make clean in the msys2 build scripts
for consistency with other build scripts
2015-12-10 10:26:15 +01:00
Frank Denis
0879c0bd22 Run "make clean" first in the build scripts 2015-12-10 10:24:19 +01:00
Frank Denis
47d8513bde Fix offset in obsolete crypto_sign_edwards25519sha512batch_open 2015-12-10 09:41:17 +01:00
Frank Denis
9567be2df1 Revert "Use minimal builds on msys2"
This reverts commit cc29da17c3.
2015-12-09 22:29:41 +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
a84ae0170c 1.0.7 is ready 2015-12-08 16:58:21 +01:00
Frank Denis
731f2e1c12 Force alignment for _mm_loadl_epi64() in DEBUG mode
Required to work around gcc sanitizer
2015-12-07 22:44:24 +01:00
Frank Denis
ea43d1b18b Shorten auth7 2015-12-07 17:41:20 +01:00
Frank Denis
26535c3d42 Remove browser-js.done or js.done, but not both 2015-12-07 12:50:24 +01:00
Frank Denis
bfa206ed4b Let emscripten.sh support a --browser-tests switch 2015-12-07 12:38:22 +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
31b75afb99 Nits 2015-12-07 02:01:39 +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
7354964b91 Update the examples for libsodium 1.0.7 2015-12-06 23:08:44 +01:00
Frank Denis
c7eec99d2f Update ChangeLog 2015-12-06 19:55:47 +01:00
Frank Denis
ec6b86611f More checks for sodium_add() (overlaps) and sodium_increment() 2015-12-06 19:06:27 +01:00
Frank Denis
a65484a7e5 Don't define unused variables 2015-12-06 18:47:07 +01:00
Frank Denis
3796145631 autoconf: check that named registers work 2015-12-06 18:30:00 +01:00
Frank Denis
b816a44b13 Assembly optimized _increment() and _add() for common nonce types 2015-12-06 18:11:37 +01:00
Frank Denis
5b62287f98 Add a --enable-opt compile-time switch 2015-12-05 17:56:42 +01:00
Frank Denis
cb1b6a4a2f Use -O2 & -flto for iOS targets 2015-11-30 00:17:22 +01:00
Frank Denis
bc531c6af5 On OSX, compile with -flto for better performance 2015-11-30 00:08:00 +01:00
Frank Denis
242429589f Reformat 2015-11-28 16:18:41 +01:00
Frank Denis
13f8e1a162 +floodyberry for poly1305/sse2 2015-11-28 16:17:56 +01:00
Frank Denis
f58b84dd63 THANKS << Scott Arciszewski 2015-11-28 16:15:25 +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
d11819eaf5 Let blake2b abort on invalid parameters instead of returning -1 2015-11-27 11:02:27 +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
0ec04baf95 Nit 2015-11-27 01:53:47 +01:00
Frank Denis
e0b027f112 Constify & add a note on _mm_loadl_epi64() 2015-11-27 01:34:14 +01:00
Frank Denis
38fd43d7d3 Use memcpy() instead of a cast 2015-11-27 01:18:07 +01:00