Commit Graph
4516 Commits
Author SHA1 Message Date
Frank Denis 5aeec062e9 Clarify versioning 2025-12-31 23:00:37 +01:00
Frank Denis 1e40f96e57 Regen for emscripten 2025-12-31 12:39:39 +01:00
Frank Denis e6a7bc2df4 Rename ip2bytes and bytes2ip to ip2bin and bin2ip for consistency 2025-12-31 12:35:41 +01:00
Frank Denis 52fbfd80ed Update symbols list 2025-12-31 12:25:34 +01:00
Frank Denis 20452e34d5 Add test for IP conversion functions 2025-12-31 12:23:39 +01:00
Frank Denis 776ec1d92c Add sodium_ip2bytes, sodium_bytes2ip 2025-12-31 12:10:12 +01:00
Frank Denis f913525a5f Emscripten: add -s SINGLE_FILE_BINARY_ENCODE=0
Emscripten 4 changed the WASM binary encoding mode from base64 to
a custom UTF-8 binary encoding with binaryDecode().

The new encoding uses control characters and non-printable ASCII
that get corrupted when served to browsers.
2025-12-31 00:40:44 +01:00
Frank Denis c61b078902 MSVC doesn't allow direct C-style casts between NEON vector types
Replace (int8x16_t) with vreinterpretq intrinsics
2025-12-30 22:23:36 +01:00
Frank Denis a24c9a41c3 buildbase.bat: display error if compilation fails 2025-12-30 22:23:26 +01:00
Frank Denis f278403874 Use a specialized shuffle macro and avoid non-portable builtins 2025-12-30 21:43:48 +01:00
Frank Denis 65bba587c4 Sort emscripten-symbols.def 2025-12-30 23:11:12 +01:00
Frank Denis df145a5226 MSVC: add /UndefIntOverflow- 2025-12-30 23:08:12 +01:00
Frank Denis 1f78aa49e5 Use --mapdir instead of --dir for wasmer 2025-12-30 23:04:12 +01:00
Frank Denis 125245d384 Remove AppVeyor badge 2025-12-30 15:44:25 +01:00
Frank Denis e3f1375f55 CI: run WASI tests 2025-12-30 23:00:12 +01:00
Frank Denis b490bcbd7c Try to build and run on wasmer in CI 2025-12-30 12:22:23 +01:00
Frank Denis e601a273f5 Use AES_{DEC,ENC}LAST in ipcrypt_soft 2025-12-30 12:05:08 +01:00
Frank Denis 06b64190b7 Add softaes encryptlast/decryptlast 2025-12-30 12:01:40 +01:00
Frank Denis 245b63bfcf Cleanup the ipcrypt tests 2025-12-30 12:00:40 +01:00
Frank Denis 3f02fdaea1 The Android SDK update means that we now support 16 KB page sizes 2025-12-30 09:57:31 +01:00
Frank Denis 93d8f8eefe Using _mm_add_epi8(a, a) is cleaner than the shift+mask 2025-12-30 09:52:00 +01:00
Frank Denis 53f73b51e4 Align Intel version of pfx_shift_left with the ARM/soft impls 2025-12-30 09:47:48 +01:00
Frank Denis 4f498b72d4 Format 2025-12-30 01:37:16 +01:00
Frank Denis ab8a8a1ee6 Add PFX variant 2025-12-30 01:35:44 +01:00
Frank Denis b7db09d61e Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  ipcrypt-nd: correct soft implementation of tweak_expand
2025-12-30 00:58:42 +01:00
Frank Denis 864e1b27b3 Add in-place encryption test 2025-12-30 00:58:26 +01:00
Frank Denis 04919d35d0 ipcrypt-nd: correct soft implementation of tweak_expand 2025-12-30 00:56:50 +01:00
Frank Denis 7a58f66b43 SHAKE: add a test for custom delimiters with the MSB set 2025-12-30 00:42:54 +01:00
Frank Denis 32f787a79b SHAKE: a custom domain byte may have its MSB set, so xor the padding 2025-12-30 00:25:39 +01:00
Frank Denis 8c84e36514 Use consistent names for ipcrypt array lengths 2025-12-29 23:13:17 +01:00
Frank Denis 12b39aab60 Sync ChangeLog 2025-12-29 23:09:17 +01:00
Frank Denis f4cae188c4 Add extra scalarmult tests 2025-12-29 22:09:37 +01:00
Frank Denis ad3004ec87 core_ed25519_is_valid_point: check Y==Z in addition to X==0 2025-12-29 22:09:31 +01:00
Frank Denis ff06acd20d Regen emscripten 2025-12-29 23:06:17 +01:00
Frank Denis d548cce874 Refer to the correct header 2025-12-29 16:08:36 +01:00
Frank Denis 435631b1c3 Fix typos 2025-12-29 16:08:36 +01:00
Frank Denis 68acec3883 Format 2025-12-29 16:08:36 +01:00
Frank Denis fc79c5d6b2 Remove crypto_core_ed25519_from_uniform 2025-12-29 16:08:36 +01:00
Frank Denis efe74daf52 2026 2025-12-29 15:54:49 +01:00
Frank Denis 1ee565283d That useless function will be removed 2025-12-29 23:00:17 +01:00
Frank Denis aada8d577a Emscripten: do not use WASM_BIGINT, for compatibility 2025-12-28 13:41:18 +01:00
Frank Denis 622cd410ea emscripten.sh: initialize Module.getRandomValue before WASM loads 2025-12-28 13:07:05 +01:00
Frank Denis be0587ff3d Update for Zig-current 2025-12-27 16:12:48 +01:00
Frank Denis 2909039095 test/default/kem_mlkem768.c: check return codes 2025-12-09 23:00:11 +01:00
Frank Denis 07b2b42713 sha3: permute at rate boundary
Not triggered in this context, but correctness doesn't hurt
2025-12-09 01:59:02 +01:00
Frank Denis 1b95172b82 Add ML-KEM768 2025-12-09 01:00:51 +01:00
Frank Denis caf84c54d6 Cleanup ipcrypt tests 2025-12-08 20:51:29 +01:00
Frank Denis a3a01efc85 emscripten: remove old JS test files 2025-12-08 20:35:48 +01:00
Frank Denis 3768094cee emscripten: avoid grep on binary files 2025-12-08 20:33:54 +01:00
Frank Denis 4777e59fe3 emscripten.sh: properly detect the Javascript runtime 2025-12-08 20:33:46 +01:00