Commit Graph

3976 Commits

Author SHA1 Message Date
Frank Denis
bfc88823e3 config.sub update 2023-08-03 22:33:10 +02:00
Frank Denis
dd7f1ce488 Remove --experimental-wasm-bigint for the tests using Node 2023-07-27 12:13:36 +02:00
Frank Denis
4f099fc593 Add proper CET support (followup to #1290) (#1291) 2023-07-19 18:31:55 +02:00
Frank Denis
f3bd149feb Revert "Build correctly with IBT and Shadow Stack (#1289)"
This reverts commit 5fe02c89a7.
2023-07-19 15:10:52 +02:00
Siddhesh Poyarekar
5fe02c89a7 Build correctly with IBT and Shadow Stack (#1289)
Add .gnu.property notes to indicate support for IBT and shadow stacks
when libsodium is built with it.  There's no stack switching code in
here, so this should not need any other codegen changes.
2023-07-18 17:56:45 +02:00
Frank Denis
da27f75b1c config.sub update 2023-07-18 17:42:40 +02:00
Frank Denis
f58e91061e Merge branch 'stable' of github.com:jedisct1/libsodium into stable
* 'stable' of github.com:jedisct1/libsodium:
  build: do not define the sodium target when not found by CMake (#1287)
2023-06-16 19:01:40 +02:00
Frank Denis
e4fd497b98 sodium_utils{2,3} are not worth running in benchmarks 2023-06-16 19:01:20 +02:00
Amin Yahyaabadi
a1348978e6
build: do not define the sodium target when not found by CMake (#1287) 2023-06-15 13:59:56 +02:00
Frank Denis
609f089764 Azure Pipelines: remove WASI CI checks for now 2023-05-23 01:36:44 +02:00
Frank Denis
adef28f318 Define SODIUM_STATIC for Windows static builds 2023-04-27 08:24:28 +02:00
Frank Denis
8cc84df466 Add CITATION.cff 2023-04-14 23:24:50 +02:00
Frank Denis
0c5ac65576 build.zig don't strip in Debug mode 2023-03-01 17:05:26 +01:00
Frank Denis
135d7ef047 Remove redundant strip 2023-02-16 22:00:45 +01:00
Frank Denis
41e93e96c0 emscripten: use different settings for wasm and js builds 2023-02-16 20:08:23 +01:00
Frank Denis
81f58a5c58 emscripten: remove pwhash_* from non-sumo builds 2023-02-16 19:36:15 +01:00
Frank Denis
b9b0c62e46 emscripten: EXTRA_EXPORTED_RUNTIME_METHODS -> EXPORTED_RUNTIME_METHODS 2023-02-16 19:21:16 +01:00
Frank Denis
ebcc2a6636 pwhash: fill output buffer with junk prior to running the actual KDF
These functions are a little bit special, because unlike everything
else, they do dynamic memory allocations, and are more likely to fail.

Applications are expected to check the return code, and these functions
are tagged with ((warn_unused_result)) but applications may still
ignore these.

This is also an issue with JavaScript, when total memory hasn't been
properly configured.

To be safe, fill the buffer with non-deterministic bytes, that are
unlikely to ever verify later.
2023-02-16 18:22:19 +01:00
Frank Denis
b166dbfb2b Regen autoconf 2023-02-15 20:02:04 +01:00
Frank Denis
6318c8c6af emscripten: setting Module.TOTAL_MEMORY doesn't do anything 2023-02-15 20:02:04 +01:00
Frank Denis
abfbcab412 Use CLOCK_MONOTONIC for benchmarking, if possible 2023-02-15 19:53:33 +01:00
Frank Denis
39b4300cf2 Update config.sub 2023-02-07 18:36:08 +01:00
Frank Denis
ec51ee03f8 Azure Pipelines: use the recommended way to add wasmer to env 2023-02-07 18:35:25 +01:00
Frank Denis
410d0a38b7 Check for iwasm existence before trying to use it 2023-02-07 18:35:25 +01:00
Frank Denis
5f32a74e1a The --stack-first link option doesn't exist any more 2023-02-07 13:01:40 +01:00
Frank Denis
cadf901940 Azure: update to zig 0.10.1 2023-02-07 12:57:21 +01:00
Frank Denis
800c31d9fa Use Zig 0.10.1 2023-02-07 12:38:20 +01:00
Frank Denis
4275023f16 On Windows, a ".LIB" file can be either shared or static
We were overwriting the static library with the shared one.
2023-01-18 23:04:24 +01:00
Frank Denis
ab4adc2741 apple-xcframework.sh: add the ability to skip simulators 2023-01-16 13:46:55 +01:00
Frank Denis
045bdc0782 Add a pwhash test with guarded memory; it doesn't hurt 2023-01-09 10:48:51 +01:00
Frank Denis
b435217779 2023 2023-01-05 19:03:57 +01:00
Frank Denis
5961da0223 MSVC: apply patches from Conan to for debugging information 2023-01-05 19:03:49 +01:00
Frank Denis
6d726c70e4 Skip the misuse handler test when running benchmarks or wasm 2022-12-20 13:17:31 +01:00
Frank Denis
62424f2840 wasm32-wasi.sh: match the number of iterations from build.zig 2022-12-20 08:31:27 +01:00
Frank Denis
65d56b1077 iwasm requires precompilation to get decent speed 2022-12-19 12:34:51 +01:00
Frank Denis
4acf8befe0 Mention that mlock() failing is not a hard error for sodium_malloc() 2022-12-19 12:12:29 +01:00
Frank Denis
374a58c1e1 Bun: explicitly print the output of the wasm module to the console 2022-12-19 10:27:36 +01:00
Frank Denis
45da50ab0e Bun requires an absolute path 2022-12-19 10:22:09 +01:00
Frank Denis
c3c2595bd7 Add support for Bun as a WebAssembly runtime 2022-12-19 10:15:22 +01:00
Frank Denis
4ffb2dd0ef Node requires an async function to start wasm code 2022-12-18 21:37:01 +01:00
Frank Denis
6c3b1492b2 Running tests with Node requires --experimental-wasm-bigint 2022-12-18 21:21:27 +01:00
Frank Denis
b73238ff32 Remove unused MAX_MEMORY_TESTS constant 2022-12-17 21:46:32 +01:00
Frank Denis
51f6b2df8d Add wazero to the list of tested wasm runtimes 2022-12-17 21:46:00 +01:00
Frank Denis
1ff1396283 Add the ability to convert tests into benchmarks 2022-12-17 21:36:15 +01:00
Frank Denis
6aa4e8c240 Don't built shared library for WASI 2022-12-17 20:18:11 +01:00
Frank Denis
b740dc84c1 Update msys2 2022-12-16 17:29:51 +01:00
Frank Denis
3cbaea8bc6 Avoid memcmp() with len=0 2022-12-12 00:16:51 +01:00
Frank Denis
fbad6b933b Update the Android NDK 2022-12-12 00:12:25 +01:00
Frank Denis
a5ea347381 Sync the AESNI aes_gcm_decrypt_generic() impl with the ARM one 2022-12-11 23:48:30 +01:00
Frank Denis
8b9a98c47f Add a test for aes256gcm_decrypt with long inputs, make it pass 2022-12-11 23:45:59 +01:00