Frank Denis
beec06eb46
Revert "RFC9381 ECVRF implementation ( #1188 )"
...
This reverts commit 7978205916
.
2024-09-25 21:37:31 +02:00
Frank Denis
8e245590d8
Remove unused variables
2024-09-18 12:39:21 +02:00
Frank Denis
f92e5ae836
Fix flaky non-deterministic box_seal tests
...
With very small messages, there's a significant probability that the
ciphertext is identical to the message.
Fixes #1388
2024-06-30 21:11:49 +02:00
Iñigo Querejeta Azurmendi
7978205916
RFC9381 ECVRF implementation ( #1188 )
...
* Version 12 of ECVRF
* Incorrect ordering of function inputs
* Identation and notation
* single multiscalar multiplication function
Also changed the style of tests, where the expected output is in vrf.exp rather than in test data (following the style of the hashing).
* declarations inside the if code block
* identation of test_data
* Rename to RFC9381
* Move declarations to top of block
* Check small order over deserialised PK
* Include from_string functions in ed25519_ref10
* Update quirks.h
---------
Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2024-05-25 18:55:14 +02:00
Frank Denis
193cab86d3
constcheck: include Homebrew paths by default
2024-05-24 13:16:54 +02:00
Frank Denis
c9c34fb31f
Always add -enable-sign-ext to the wasm-opt command-line
...
At least LLVM 18 seems to emit these instructions by default.
2024-05-19 13:04:29 +02:00
Frank Denis
44b99c5a23
Add forgotten crypto_kdf_hkdf_sha512_statebytes()
2023-11-29 22:02:37 +01:00
Frank Denis
5466030cce
egrep -> grep -E
2023-11-23 13:34:36 +01:00
Frank Denis
39184b5b96
Include argon2id in crypto_pwhash_primitive()
...
Fixes #1331
2023-11-10 12:12:02 +01:00
Frank Denis
45aa3adb96
Handle SIGPROT, CHERI's in-address space security exception
2023-09-12 21:02:18 +02:00
Frank Denis
1ef7b43ae9
Switch AEGIS to 256-bit tags by default
2023-09-11 18:02:24 +02:00
Frank Denis
3cbdacbd8c
Revert "Enable building win/arm64 package using visual studio ( #1130 )"
...
This reverts commit 13144d11c1
.
It doesn't work.
Trying to open the solutions in Visual Studio results in
"libsodium.vcxproj(8,3): The element <#text> beneath element
<ItemGroup> is unrecognized."
2023-09-10 23:32:42 +02:00
Frank Denis
d2ac311e0e
Remove WAVM
...
This is very sad, but what used to be the best WebAssembly runtime
now appears to be abandoned.
2023-07-30 01:02:57 +02:00
Frank Denis
d0b011f0e3
Remove --experimental-wasm-bigint for the tests using Node
2023-07-27 12:13:21 +02:00
Frank Denis
a3c44aba94
sodium_utils{2,3} are not worth running in benchmarks
2023-06-16 19:01:57 +02:00
Frank Denis
05b8da1a49
Use CLOCK_MONOTONIC for benchmarking, if possible
2023-02-15 19:42:08 +01:00
Frank Denis
d95e71db2e
Check for iwasm existence before trying to use it
2023-02-07 18:37:21 +01:00
Frank Denis
7082a787d9
Add a pwhash test with guarded memory; it doesn't hurt
2023-01-09 10:47:15 +01:00
Frank Denis
1bd73c1a68
Add crypto_kdf_hkdf_sha{256,512}_extract_{init,update,final}
2023-01-08 22:16:34 +01:00
Frank Denis
f842b157e0
Skip the misuse handler test when running benchmarks or wasm
2022-12-20 13:17:11 +01:00
Frank Denis
0c60ecb3df
iwasm requires precompilation to get decent speed
2022-12-19 12:34:32 +01:00
Frank Denis
3eb9e5a9a3
Bun: explicitly print the output of the wasm module to the console
2022-12-19 10:27:08 +01:00
Frank Denis
738eac1404
Bun requires an absolute path
2022-12-19 10:21:48 +01:00
Frank Denis
b584e537d3
Add support for Bun as a WebAssembly runtime
2022-12-19 10:14:56 +01:00
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
87ba2c4d36
Unexport _cached_ symbols, regen quirks.h
2022-11-26 22:28:08 +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