Commit Graph

3973 Commits

Author SHA1 Message Date
Cheng
11d0a17dbb
Merge branch 'stable' of ../../../mirrors/libsodium into rho-fork 2023-05-16 05:10:32 +08: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
Cheng
bc41d89b68
Merge branch 'stable' into rho-fork 2023-02-27 07:57:53 +08: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
Frank Denis
dab102d404 On stable, on failed decryption, fill buffer with 0x00
Not with 0xd0, to keep the previous behavior. NSec expicitly checked
for that value.
2022-12-11 21:07:42 +01:00
Frank Denis
c69b3ec9be Add some additional tests of in-place encryption/decryption 2022-12-11 21:05:23 +01:00
Frank Denis
634df56c5d Add an AES-GCM test of in-place encryption/decryption 2022-12-11 20:44:28 +01:00
bfren
19537d42ed Include linux-musl-arm in NuGet packages (#1234)
* Bumping version to 1.0.18.4 and including linux-musl-arm package
* Updating to 1.0.18.4
2022-12-11 20:06:31 +01:00
Frank Denis
991b56c739 generate-emscripten-symbols.sh: allows the lib path to be overridden 2022-12-09 21:15:55 +01:00
Frank Denis
b706a78d38 Bump NuGet pathversion 2022-12-09 13:32:52 +01:00
Frank Denis
57863e390d .NET: use macOS 10.15 as a target instead of 10.13
macOS 10.15 has reached EOL, and doesn't even get security
fixes from Apple any more. So, hopefully .NET will soon remove
support for it as well.
2022-11-28 00:39:22 +01:00
Frank Denis
8b348ab16c Merge commit '5bb26cbb9487f870a2ea8352d1b431d7f0921c88' into stable
* commit '5bb26cbb9487f870a2ea8352d1b431d7f0921c88':
  Compile .NET Linux targets with Zig
  Remove unneeded path
  build.zig: require at least SSE4.1 when targeting x86_64
  test/default/run.sh compat with GNU find
2022-11-28 00:07:17 +01:00