Commit Graph

3297 Commits

Author SHA1 Message Date
Frank Denis
e2581d9105 Swap #ifdef branches for clarity 2018-01-16 01:06:03 +01:00
Frank Denis
958060e2ec Signatures: do not reject weak public keys if ED25519_COMPAT is defined 2018-01-16 01:02:29 +01:00
Frank Denis
0468e778d2 Revert "Solaris Studio apparently supports __attribute__()"
This reverts commit 74a4496cc5.
2018-01-15 13:34:31 +01:00
Frank Denis
bc6541a70a emscripten: do not use closure 2018-01-15 13:33:33 +01:00
Frank Denis
74a4496cc5 Solaris Studio apparently supports __attribute__()
Fixes #660
2018-01-14 23:09:46 +01:00
Frank Denis
794ec886e7 Check for __aarch64__ instead of __ARM_NEON for 128-bit arithmetic 2018-01-07 15:40:27 +01:00
Frank Denis
9ebe443bc7 Who's still using XCode < 8 ? 2018-01-07 13:13:56 +01:00
Frank Denis
93887f179d Check for -mretpoline / -zretpolineplt support 2018-01-04 18:04:39 +01:00
Frank Denis
b01a622c75 2018 2017-12-31 19:17:47 +01:00
Frank Denis
764656443f Check if we can use inline asm code, not only on x86_64 2017-12-31 01:23:58 +01:00
Frank Denis
a18e21b49d Use (""::"r"(pnt):"memory") instead of (""::"p"(pnt)) for the barrier 2017-12-31 01:11:45 +01:00
Frank Denis
7dee41abee Disable LTO in ios/osx build scripts 2017-12-31 00:56:51 +01:00
Frank Denis
67e421d4e2
Merge pull request #653 from buu700/master
Updates for latest emscripten
2017-12-27 08:52:47 +01:00
Ryan Lester
607d9b7943
Closure fix 2017-12-26 22:39:17 -05:00
Ryan Lester
4614ca754d
updates for latest emscripten 2017-12-26 22:05:08 -05:00
Frank Denis
fff87d50dd Restore the __EMSCRIPTEN__ check for 128-bit usage 2017-12-27 00:28:41 +01:00
Frank Denis
d73d5f8ee6 Rather than checking for emscripten, perform a 128-bit mul 2017-12-27 00:10:18 +01:00
Frank Denis
5f5d36a9bb emscripten: malloc() and free() should be exported as library symbols 2017-12-25 23:34:38 +01:00
Frank Denis
68d845e651 Export setValue, getValue 2017-12-25 23:00:08 +01:00
Frank Denis
387e1833d7 emscripten: move the set of exported runtime methods 2017-12-25 22:33:30 +01:00
Frank Denis
8eba49b6a8 emscripten: export _malloc() and _free() 2017-12-25 22:31:04 +01:00
Frank Denis
88fca4834c emscripten: export Pointer_stringify() for recent emscripten versions 2017-12-25 22:18:40 +01:00
Frank Denis
6a60818982 C++ compat 2017-12-21 22:35:02 +01:00
Frank Denis
8a2833f01a Remove the dummy FS call from the Javascript tests 2017-12-21 21:37:02 +01:00
Frank Denis
72ab8739a2 Javascript tests: don't call FS.*() if the filesystem module is not present 2017-12-21 21:36:56 +01:00
Frank Denis
bd631649c1 Emscripten: run the tests in benchmark mode 2017-12-21 18:52:59 +01:00
Frank Denis
d7f8f6bc80 Static 2017-12-21 18:47:43 +01:00
Frank Denis
0187ba70ad Require the generichash state to be aligned
Alignment is already required by other functions anyway.
2017-12-21 18:21:43 +01:00
Frank Denis
1e7839a90c Lift alignment requirements in crypto_generichash() 2017-12-21 18:14:17 +01:00
Frank Denis
2604a41774 Add extra align statements 2017-12-21 17:24:23 +01:00
Frank Denis
ffb8475a4a Brace yourself 2017-12-21 17:24:01 +01:00
Frank Denis
3383fd1bdf Extra braces 2017-12-21 16:57:27 +01:00
Frank Denis
107b42af3f Remove unused LOAD128() and STORE128() macros 2017-12-21 16:48:15 +01:00
Frank Denis
dce1614eee Use default randombytes implementation for tests on emscripten 2017-12-21 02:02:39 +01:00
Frank Denis
13201046e6 emscripten: stick to the unique randombytes implementation 2017-12-21 00:32:42 +01:00
Frank Denis
f34d5ef17e Emscripten: bump the memory up for the tests 2017-12-20 23:04:04 +01:00
Frank Denis
65f71fe060 Prefer the system version of nodejs to the emscripten one 2017-12-20 22:51:58 +01:00
Frank Denis
1f1b0afb5c Do not assume that __clang__ being defined implied __GNUC__ defined as well 2017-12-19 21:44:48 +01:00
Frank Denis
b1273b0411 Back to dev mode 2017-12-19 21:44:25 +01:00
Frank Denis
a8ef83ed53 Enable 128-bit arithmetic clang+systems with NEON 2017-12-18 20:26:10 +01:00
Frank Denis
1dd73862be Disable ssp on HaikuOS 2017-12-18 14:21:31 +01:00
Frank Denis
69642f0409 Undefine printf if required 2017-12-16 21:01:23 +01:00
Frank Denis
bfc8ec1248 Add a memleak checker to the benchmark code
Plug the leaks it surfaced in pwhash_argon2* tests
2017-12-16 14:51:11 +01:00
Frank Denis
b84e4b9ddf Add missing sodium_free() calls in the kdf test 2017-12-16 14:31:01 +01:00
Frank Denis
99fe302562 Make things more explicit 2017-12-16 13:12:07 +01:00
Frank Denis
b6dab1029d Sort 2017-12-16 13:08:55 +01:00
Frank Denis
31b13ada14 + #include <limits.h> 2017-12-16 13:08:34 +01:00
Frank Denis
18d5940bc6 Use a simple memory pool for benchmarks
In the test suite, a significant amount of time is spent in memory
allocations. A memory pool helps achieve more relevant results with
less iterations.
2017-12-16 13:07:15 +01:00
Frank Denis
77e7d88d89 We really don't need an intermediate variable here 2017-12-16 13:04:59 +01:00
Frank Denis
675149b9b8 Comment 2017-12-13 10:24:13 +01:00