1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00
Commit Graph

690 Commits

Author SHA1 Message Date
Frank Denis
58ae64d319 Node requires an async function to start wasm code 2022-12-18 21:36:35 +01:00
Frank Denis
a1f73b8cab Running tests with Node requires --experimental-wasm-bigint 2022-12-18 21:21:03 +01:00
Frank Denis
643bba3d27 Hide wasmedgec output 2022-12-18 21:06:44 +01:00
Frank Denis
95b72ea3c5 Remove unused MAX_MEMORY_TESTS constant 2022-12-17 21:47:35 +01:00
Frank Denis
ff001cadcb Add wazero to the list of tested wasm runtimes 2022-12-17 21:47:28 +01:00
Frank Denis
2d3a21c6c7 Avoid memcmp() with len=0 2022-12-12 00:17:20 +01:00
Frank Denis
4482067df9 Add a test for aes256gcm_decrypt with long inputs, make it pass 2022-12-11 23:44:50 +01:00
Frank Denis
3adc44bab9 Add some additional tests of in-place encryption/decryption 2022-12-11 21:04:49 +01:00
Frank Denis
badf9cb4be Add an AES-GCM test of in-place encryption/decryption 2022-12-11 20:44:35 +01:00
Frank Denis
408125a72b Add AEGIS-256 software support 2022-12-10 00:03:42 +01:00
Frank Denis
11d2fa5bb0 Add AEGIS-128L software support 2022-12-09 21:12:35 +01:00
Frank Denis
d0fa8b4178 test/default/run.sh compat with GNU find 2022-11-27 22:12:34 +01:00
Frank Denis
134b035345 Explain why we reject low-order R 2022-11-27 15:28:17 +01:00
Frank Denis
d2d8f573b7 Add ge25519_p2_to_p3(), ge25519_p3_add(), ge25519_p3_sub() 2022-11-26 22:14:24 +01:00
Frank Denis
42b4a295fc crypto_sign_verify(): add and match the Zig test vectors 2022-11-26 21:25:47 +01:00
Frank Denis
71c7aa0975 Add a simple test runner to zig-out/bin/ 2022-11-23 21:37:20 +01:00
Frank Denis
62c0a60a00 Last exit() -> _exit() in misuse test 2022-11-14 00:08:38 +01:00
Frank Denis
6bcaccafab exit() -> _exit() in misuse test 2022-11-14 00:05:28 +01:00
Frank Denis
55b4510986 sodium_utils tests: exit() -> _exit() 2022-11-13 23:49:38 +01:00
Frank Denis
9b623852bd Rewrite the AES256-GCM implementation
Faster, way more readable, easier to port to other architectures.
2022-11-13 18:42:38 +01:00
Yi
fbc070487e
Update wasi-test-wrapper: SSVM was renamed to WasmEdge (#1179) 2022-05-12 12:36:11 +02:00
Frank Denis
75bde19055 Revert "Add the shifumi128 ZKP system"
This reverts commit 6efe9ee2b5.
2022-04-02 09:32:22 +02:00
Frank Denis
6efe9ee2b5 Add the shifumi128 ZKP system 2022-03-31 20:04:51 +02:00
Frank Denis
77bf2e8273 Lucet has reached EOL 2022-01-22 23:34:01 +01:00
Frank Denis
5df53ce62b Revert "wasm-opt: use --strip-debug"
This reverts commit 85bdde2817.
2021-11-18 14:15:02 +01:00
Niyas Sait
13144d11c1
Enable building win/arm64 package using visual studio (#1130)
* Retarget Visual studio tool chain to v142

* add ARM64 option to wintest.bat

* add windows/arm64 target to appveyor for CI

* add arm64 targets to visual studio solutions

* add cross compile option to wintest.bat

* Fix missing SET in wintest.bat

* update auto-generation scripts for msvc and update project files
2021-11-18 00:43:23 +01:00
Frank Denis
85bdde2817 wasm-opt: use --strip-debug 2021-11-17 21:02:17 +01:00
Frank Denis
7052e4733f H2C: Y should be negative is gx1 is a square
Fixes #1119
2021-11-08 14:31:14 +01:00
Frank Denis
6d566070b4 Add some more base64 decoding tests 2021-03-20 00:08:20 +01:00
Frank Denis
c93662b27c Add AEGIS128L test, regen the ones for AEGIS256, sort 2021-03-15 11:00:18 +01:00
Frank Denis
421212fe42 Add LLVM, move lucet down 2021-03-10 18:49:13 +01:00
Tobias Nießen
2082e038fd
test: fix two error messages (#1034) 2021-02-24 23:55:18 +01:00
Frank Denis
55bb5af253 wasm bench: make lucet performance significantly better
By default, lucetc generates code with explicit bound checking,
even though the runtime has guard pages.

Elision only happens with --reserved-size=4GiB
2021-02-24 21:50:12 +01:00
Frank Denis
28e6cc1a95 Remove unused hash2.exp 2021-02-21 00:53:18 +01:00
Frank Denis
9039eea1e3 Add support for Node without wasmer-js 2021-02-20 21:26:23 +01:00
Frank Denis
cd5252328f WASM benchmarks: add lucet and WAMR, update wasmtime & wasmer 2021-02-19 23:13:10 +01:00
Frank Denis
af6366efc3 Braces 2021-02-13 12:10:38 +01:00
Frank Denis
4020f76a5f Put <meta> tag outside <style>
Fixes https://github.com/jedisct1/libsodium.js/pull/267
2021-02-07 13:58:23 +01:00
Frank Denis
e4206f1337 Change crypto_core_ed25519_from_string() to accept a hash function 2021-01-24 19:21:07 +01:00
Frank Denis
e945207b77 Remove unused variable in tests
Fixes #998
2020-09-29 11:05:31 +02:00
Frank Denis
d8f512bfaa box_seal test: don't check empty messages
Fixes #974
2020-07-01 23:34:34 +02:00
Frank Denis
a8fa837aac Don't even include signal.h on WASI
Since version 11, wasi-sysroot doesn't ignore it but spits out
an error instead.
2020-06-04 10:54:53 +02:00
Frank Denis
039da3af81 Typo 2020-06-02 16:57:08 +02:00
Frank Denis
1fae7383ce Update H2C test vectors 2020-06-02 16:45:51 +02:00
Frank Denis
1127c43278 Add extra box_seal() tests 2020-05-21 18:38:55 +02:00
Frank Denis
6a1fae4b25 Add some field arithmetic tests for edge cases 2020-05-14 12:33:49 +02:00
Frank Denis
f23c932d74 H2C: change sign computation for Ell2 to match BHKL13
https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve/pull/250
2020-05-12 16:33:13 +02:00
Frank Denis
67a9e79655 Remove memory shielding
That was a great idea to protect against information leak through
speculative loads.

Realistically, nobody is going to use this.
2020-05-10 21:05:24 +02:00
Frank Denis
26a7c82033 Simplify scalarmult{2,5} tests 2020-04-26 20:06:51 +02:00
Frank Denis
7e2755166a Add a scalarmult test to show that the high bit is ignored 2020-04-26 20:00:49 +02:00