443 Commits
Author SHA1 Message Date
Frank Denis 3d9d8f5001 Regen emscripten 2026-02-20 23:41:12 +01:00
Frank Denis 38a82863f1 crypto_core_*_from_string: drop the _ro suffix 2026-02-20 23:23:12 +01:00
Frank Denis 8bb79ae24d Rename crypto_core_*_from_string to crypto_core_*_from_string_nu
RO should be the default
2026-02-20 23:19:12 +01:00
Frank Denis 78c80a9f73 Update emscripten symbols 2026-02-20 23:00:12 +01:00
Frank Denis babd0c3e59 Remove crypto_core_ristretto255_from_string 2026-02-20 12:05:55 +01:00
Frank Denis af4ec309ef apple-xcframework: move headers into a Clibsodium subdirectory
The generated Clibsodium.xcframework will have headers at
Headers/Clibsodium/ instead of Headers/

This prevents the module.modulemap collision when used alongside
other xcframeworks.
2026-01-29 13:26:13 +01:00
Frank Denis 368ceb845d Emscripten: add an option to compile with SIMD 2026-01-22 11:19:41 +01:00
Frank Denis e7c1796015 JavaScript: faster randomness generation
Fill entire buffers directly.
2026-01-13 23:00:03 +01:00
Frank Denis d603d6b151 Set emscripten reserved memory to 80MB 2026-01-11 22:53:49 +01:00
Frank Denis 589f042623 Bump dev 2026-01-07 23:28:39 +01:00
Frank Denis 60b528c3dd Export missing crypto_ipcrypt_nd_keygen() helper function 2026-01-07 23:00:39 +01:00
Frank Denis 1ac57afa53 Emscripten: handle empty CFLAGS 2026-01-06 14:52:35 +01:00
Frank Denis 52b4239c01 Modernize emscripten optimizations 2026-01-06 14:52:24 +01:00
Frank Denis 4e371ecb0d Replace -s RESERVED_FUNCTION_POINTERS=8 with -sALLOW_TABLE_GROWTH 2026-01-06 14:43:51 +01:00
Frank Denis 1b6f37d343 Bump 2026-01-05 23:06:32 +01:00
Frank Denis 1e40f96e57 Regen for emscripten 2025-12-31 12:39:39 +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 65bba587c4 Sort emscripten-symbols.def 2025-12-30 23:11:12 +01:00
Frank Denis 8c84e36514 Use consistent names for ipcrypt array lengths 2025-12-29 23:13:17 +01:00
Frank Denis ff06acd20d Regen emscripten 2025-12-29 23:06:17 +01:00
Frank Denis fc79c5d6b2 Remove crypto_core_ed25519_from_uniform 2025-12-29 16:08:36 +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 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
Frank Denis 85ddc5c2c6 apple-xcframework.sh: remove i386 iOS simulators 2025-08-28 23:09:19 +02:00
Frank Denis 93030d2cae apple-xcframework.sh: force cross-compilation when relevant
Works around instabilities of the latest Tahoe beta version
2025-08-28 23:04:19 +02:00
Frank Denis ce526f94aa apple-xcframework.sh: remove support for iOS32 2025-08-28 15:39:50 +02:00
Frank Denis e9b1fa92c9 Import dist-build/android-aar.sh readability 2025-02-20 15:36:43 +01:00
Frank Denis 4d96d503f0 Try to go to the NDK directory containing "source.properties" 2025-02-20 15:14:07 +01:00
Frank Denis 97616c3ace Check for ANDROID_NDK definition in android-aar.sh
Otherwise, the script can report success even though nothing compiles.
2025-02-20 15:03:06 +01:00
Frank Denis ea2d5b11dc Indent Android build scripts 2025-02-20 14:50:57 +01:00
ReenigneCA 5d1aea483f Android build scripts update for SDK level (#1443)
* Android build scripts: Changed default SDK level to 21; enabled specifying NDK_PLATFORM environment variable for custom SDK level; misc cleanup of Android build scripts

* Update android-aar.sh

I forgot to hit save on the script after making this change locally. The script works either way but by setting this value again in android-build.sh people can more easily build arch specific binaries if they want so the export is unnecessary but also rather meaningless.
2025-02-20 14:37:26 +01:00
Frank Denis 9c530b8aff Set the default Android platform to 21
Also explain that the "zip" command is required to build AAR archives
and that NDK_PLATFORM can be used to override the target platform.

Fixes #1440
2025-01-16 14:37:51 +01:00
Frank Denis 1d9fec9566 apple-xcframework: add arm64e builds 2024-12-21 17:00:51 +01:00
Frank Denis 7dea8e7356 xcframework: build full builds by default 2024-12-10 14:32:56 +01:00
Frank Denis babb0dd860 Sync 2024-09-25 21:42:41 +02:00
Frank Denis 101610670a Remove empty line 2024-09-18 12:40:45 +02:00
Saud Khan d2694fc37d Add support for Android's new 16K page sizes (#1407) 2024-09-11 16:04:43 +02:00
Frank Denis 0c1ea8aa4d Regen dist-build/emscripten.sh 2024-07-08 18:29:09 +02:00
Frank Denis 7858b58b35 emscripten: create JS-only builds 2024-05-23 15:42:35 +02:00
Frank Denis 9703516a5e Try running the JavaScript tests with Bun before Node 2024-05-20 21:37:16 +02:00
Frank Denis b582d20ab4 WASI: disable PIE. PIE doesn't work with WASI. 2024-05-19 11:22:21 +02:00
Nikita Savko 8806992b1b Fixed xcframework build for iOS 11 and later (#1361)
* Fixed inability to create xcframework with minimal iOS deployment target newer than iOS 10.x

* Set OS_VERSION_MIN as default value for OS_SIMULATOR_VERSION_MIN
2024-03-25 17:15:38 +01:00
Frank Denis e08d3e59e1 Emscripten: export crypto_aead_aegis* in standard builds 2024-03-24 10:44:55 +01:00
小明 7e6ea701b7 fixed inability to create xcframework in Symbolic Link (#1356)
Creating Clibsodium.xcframework...
error: cannot compute path of binary 'Path(str: "/private/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a")' relative to that of '/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a'
ls: /tmp/libsodium-stable/libsodium-apple/Clibsodium.xcframework: No such file or directory

ls -l /tmp
lrwxr-xr-x@ 1 root  wheel  11 12 15 22:43 /tmp -> private/tmp
2024-02-29 11:19:58 +01:00
Frank Denis 93a6e79750 Sync 2023-11-30 15:45:40 +01:00
Frank Denis 712d0f3fb9 Bump dev version 2023-11-29 22:10:35 +01:00
Frank Denis 5466030cce egrep -> grep -E 2023-11-23 13:34:36 +01:00