Commit Graph
4175 Commits
Author SHA1 Message Date
Frank Denis 7263e698d8 Regen 2025-07-30 23:06:02 +02:00
Frank Denis 37c5ecb937 Include <threads.h> if it exists 2025-07-30 13:27:37 +02:00
Frank Denis 51f3bee2bc Remove duplicate include 2025-07-30 13:16:13 +02:00
Frank Denis 3dea5725a9 Regen 2025-07-30 12:34:41 +02:00
Frank Denis 27efc25c2e Update m4/ax_add_fortify_source.m4 and m4/ax_valgrind_check.m4 2025-07-30 12:34:28 +02:00
Frank Denis 604d0e17bd Update autoconf 2025-07-30 12:28:39 +02:00
Frank Denis 6f39323d2e Update mlugg/setup-zig 2025-06-06 10:48:45 +02:00
Frank Denis 7e024fbf09 Update ChangeLog 2025-06-06 12:03:36 +02:00
Frank Denis b4cd238892 Improve AES256-GCM performance on ARM 2025-05-21 23:04:56 +02:00
Frank Denis ff507ae4c4 Reorder arguments to vaeseq_u8 to improve AArch64 performance
The register arguments to the AESE instruction are commutative, however
the first input register is constrained in that it also names the output
register. The constraint on register allocation causes recent LLVM
versions to emit a lot of MOV instructions, significantly impacting
performance.

Swapping the register operands allows the compiler to emit significantly
fewer MOV instructions. This change improves performance on Arm
infrastructure micro-architectures by 14-36% depending on the
micro-architecture

Found and reported by George Steed from ARM. Thanks!
2025-05-21 14:51:27 +02:00
Frank Denis 6e55605a24 tests/sodium_utils3: skip SIGSEGV check when tsan is enabled
Fixes #1450
2025-05-08 22:57:25 -06:00
Jesús López b0920881f8 Add Android binaries to NuGet package (#1455)
Add android binaries to NuGet package
2025-05-08 15:44:44 -06:00
Frank Denis 9fff3a842a Nits 2025-04-30 01:41:10 +02:00
Frank Denis 32de824a8d MSC_VER -> _MSC_VER 2025-04-22 11:33:14 +02:00
Frank Denis abd3612f43 Sync README file 2025-04-03 23:03:24 +02:00
Frank Denis 18a3d6b7ea Update CI to Zig 0.14.0 2025-03-05 01:53:12 +01:00
Frank Denis a2a3eea4f0 Update msys2 2025-02-21 12:40:38 +01:00
Frank Denis f7a3b73e37 Add autocloser.yml 2025-02-20 15:51:09 +01:00
Frank Denis aff27a60ee qemu -> qemu-system 2025-02-20 15:43:49 +01:00
Frank Denis 8a4bb595ef Improve readability 2025-02-20 15:36:04 +01:00
Frank Denis c01ba042a2 Abort if NDK_PLATFORM is empty 2025-02-20 15:29:58 +01:00
Frank Denis b4f1449d89 should -> must 2025-02-20 15:26:05 +01:00
Frank Denis 4d9b52d234 android-aar: check more accurately that ANDROID_SDK is properly set 2025-02-20 15:25:13 +01:00
Frank Denis 7f2d076a8e Try to go to the NDK directory containing "source.properties" 2025-02-20 15:13:15 +01:00
Frank Denis 4cb0fb5482 Check for ANDROID_NDK definition in android-aar.sh
Otherwise, the script can report success even though nothing compiles.
2025-02-20 15:04:20 +01:00
Frank Denis 8adeb1fc12 chmod +x dist-build/android-aar.sh 2025-02-20 14:59:38 +01:00
Frank Denis 330c5b1a5a target.result.isWasm() -> target.result.cpu.arch.isWasm() 2025-02-20 14:53:59 +01:00
Frank Denis 220290442e Android build scripts update for SDK level (#1443) 2025-02-20 14:48:59 +01:00
Frank Denis 42db9576f2 CI: upgrade Android SDK from 25c to 27c 2025-01-16 14:42:24 +01:00
Frank Denis 151e71bf50 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:36:11 +01:00
Frank Denis 6125c373c8 2025 2025-01-01 21:03:16 +01:00
Frank Denis 1418c97631 apple-xcframework: add arm64e builds 2024-12-21 16:58:26 +01:00
Frank Denis 131c6e771c defineCMacro -> root_module.addCMacro 2024-12-20 12:15:38 +01:00
Frank Denis 51800948ae Update to upload-artifact@v4 2024-12-10 23:29:07 +01:00
Frank Denis 32c1768437 Update the NuGet / dotnet-core versions 2024-12-10 23:02:40 +01:00
Frank Denis 8d82c03d28 Build libsodium.dll with VC++ for win-arm64
Fixes #1431
2024-12-10 22:55:44 +01:00
Frank Denis 79ebe284a1 dotnet-core CI: update Zig to version nightly 0.14.x
This fixes the compatibility issues with DLLs for Windows ARM64
2024-12-10 22:41:02 +01:00
Frank Denis ec81b62045 xcframework: build full builds by default 2024-12-10 14:31:07 +01:00
Frank Denis 6272f21e6c msvc/build/buildbase.bat: build for ARM64 2024-12-10 13:30:46 +01:00
Frank Denis 47448b5350 Update MSYS2 to 2024-12-08 2024-12-09 10:46:44 +01:00
Frank Denis 54965256d3 Try to run cifuzz 2024-12-04 18:01:03 +01:00
Frank Denis d09521458f Use Zig 0.13.0 and compile to x86-windows 2024-12-04 17:57:47 +01:00
Frank Denis 09675b4876 Sync dotnet-core.yml 2024-12-04 17:57:18 +01:00
Frank Denis 8dd8ca1953 Update autotools 2024-12-04 17:40:38 +01:00
Frank Denis 9e125388a1 Use uint64_t sizes in aegis*_mac()
No-op in libsodium for now, but useful if we introduce a streaming
API later.
2024-12-04 17:38:55 +01:00
Frank Denis 8f36e67d8d CI: wwitch to mlugg/setup-zig@v1 2024-11-04 00:10:04 +01:00
Frank Denis 8855e8c300 Add assembly versions of equal() and negative() 2024-10-23 22:37:37 +02:00
Frank Denis 42f4e42b06 Use an optblocker in crypto_verify_n() 2024-10-23 22:34:15 +02:00
Frank Denis c1fc74e690 Sync softaes with libaegis 2024-10-23 22:11:51 +02:00
Frank Denis 96d115cf29 Decrement and shift in separate steps 2024-10-23 19:52:14 +02:00