Frank Denis
1c2398fb7c
Build shared libraries again, even on Windows
2023-08-05 10:38:54 +02:00
Frank Denis
02368730f0
Compile libaesni with CFLAGS_AVX
2023-08-05 09:40:02 +02:00
Frank Denis
6668dc8008
Require/enable AVX for AES-based ciphers
2023-08-05 09:33:04 +02:00
Frank Denis
07a847e7ee
Remove fix for ARM
2023-08-04 10:52:17 +02:00
Frank Denis
75e4cef86a
Update goto-bus-stop/setup-zig
2023-08-04 10:50:00 +02:00
Frank Denis
71b92ae78b
Update for zig 0.11
2023-08-03 07:41:50 +02:00
Frank Denis
6bfcac99d8
Update the goto-bus-stop/setup-zig action
2023-08-03 07:39:10 +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
50c2f39b38
Move lut to the data section
2023-07-30 01:02:54 +02:00
Thomas M. DuBuisson
e599083fa9
Remove retired Lift (muse) service ( #1293 )
2023-07-29 19:17:39 +02:00
Frank Denis
d0b011f0e3
Remove --experimental-wasm-bigint for the tests using Node
2023-07-27 12:13:21 +02:00
Frank Denis
004c8bee84
Define HAVE_CET_H for zig cc
2023-07-21 05:48:23 +02:00
Frank Denis
890905f946
Add proper CET support (followup to #1290 ) ( #1291 )
2023-07-19 18:27:36 +02:00
Frank Denis
81dcedf501
Run cifuzz on stable and next branches
2023-07-18 17:58:52 +02:00
Siddhesh Poyarekar
0bc8e0bdfd
Build correctly with IBT and Shadow Stack ( #1289 )
...
Add .gnu.property notes to indicate support for IBT and shadow stacks
when libsodium is built with it. There's no stack switching code in
here, so this should not need any other codegen changes.
2023-07-18 17:56:18 +02:00
Frank Denis
c341b85969
Update build.zig
2023-07-18 17:51:34 +02:00
Frank Denis
6187ebc10f
Reorder AES ops on ARM
2023-06-19 12:34:10 +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
c524c7a14b
Revert "Leverage aegis*_absorb() when no message is desired"
...
This reverts commit 2c56be1d77
.
2023-06-15 17:15:51 +02:00
Frank Denis
2c56be1d77
Leverage aegis*_absorb() when no message is desired
2023-06-06 23:21:22 +02:00
Frank Denis
759089c5c7
Update msys2
2023-05-26 12:26:36 +02:00
Frank Denis
93a4233e79
Azure Pipelines: remove WASI CI checks for now
2023-05-23 01:36:18 +02:00
Frank Denis
d787d2b1cf
Define SODIUM_STATIC for static builds on Windows
...
Fixes #1278
2023-04-27 08:21:13 +02:00
Frank Denis
8d9ab6cd76
Use CCRandomGenerateBytes if present
...
Helps with App Store validation rules.
2023-04-16 15:15:53 +02:00
Frank Denis
961cd3e7bd
Add CITATION.cff
2023-04-14 23:25:06 +02:00
Frank Denis
adcde0ca4e
Update for zig-master
2023-04-12 12:58:37 +02:00
Frank Denis
66a68f0947
AEGIS/ARM: help the compiler emit eor3 instructions on recent ARM CPUs
2023-03-12 23:41:23 +01:00
Frank Denis
da1be5bf55
build.zig: build only static libraries
2023-03-01 17:04:21 +01:00
Frank Denis
5a72fb30eb
CI: -Drelease-fast -> -Doptimize=ReleaseFast
2023-02-16 22:15:09 +01:00
Frank Denis
50f7b2882f
CI: use zig-master
2023-02-16 22:07:17 +01:00
Frank Denis
bb2ee2359f
Update for Zig 0.11
2023-02-16 21:59:29 +01:00
Frank Denis
5755a5c009
emscripten: remove pwhash_* from non-sumo builds
...
Also use different memory settings for js and wasm builds
2023-02-16 20:12:54 +01:00
Frank Denis
6bb5197c2c
emscripten: enable EVAL_CTORS for WASM builds
2023-02-16 19:25:56 +01:00
Frank Denis
82696ef8c4
emscripten: setting Module.TOTAL_MEMORY doesn't do anything
2023-02-15 20:16:14 +01:00
Frank Denis
07b4176eca
pwhash: fill output buffer with junk prior to running the actual KDF
...
These functions are a little bit special, because unlike everything
else, they do dynamic memory allocations, and are more likely to fail.
Applications are expected to check the return code, and these functions
are tagged with ((warn_unused_result)) but applications may still
ignore these.
This is also an issue with JavaScript, when total memory hasn't been
properly configured.
To be safe, fill the buffer with non-deterministic bytes, that are
unlikely to ever verify later.
2023-02-15 20:16:10 +01:00
Frank Denis
05b8da1a49
Use CLOCK_MONOTONIC for benchmarking, if possible
2023-02-15 19:42:08 +01:00
Frank Denis
ee009287af
The --stack-first link option doesn't exist any more
2023-02-07 18:38:23 +01:00
Frank Denis
8bcb4ddad8
Azure Pipelines: use the recommended way to add wasmer to env
2023-02-07 18:37:28 +01:00
Frank Denis
d95e71db2e
Check for iwasm existence before trying to use it
2023-02-07 18:37:21 +01:00
Frank Denis
f71fed879c
Azure: update to zig 0.10.1
2023-02-07 18:36:57 +01:00
Frank Denis
ff4b2807f9
Use Zig 0.10.1
2023-02-07 18:36:48 +01:00
Frank Denis
176923f6ec
Testing android-aar.sh is enough to test all the Android build scripts
2023-01-25 11:50:12 -08:00
Frank Denis
40ada6e45e
Add android-aar.sh to CI
2023-01-25 11:46:59 -08:00
Frank Denis
0020b01a66
Try to build all Android targets (besides AAR for now)
2023-01-25 11:40:25 -08:00
Frank Denis
9cd9a0d120
On Windows, a ".LIB" file can be either shared or static
...
We were overwriting the static library with the shared one.
2023-01-18 22:13:29 +01:00
Frank Denis
ee0fe028ec
.NET: build Apple targets with the xcframework build script
...
Including support for iOS, tvOS and Catalyst in the .NET package
by the way.
2023-01-16 13:50:27 +01:00
Frank Denis
9cad824a9c
apple-xcframework.sh: add the ability to skip simulators
2023-01-16 13:34:10 +01:00
Frank Denis
48af322b7a
AES-256-GCM (AES-NI): prefetch the next blocks
...
...while computing the GHASH of the previous blocks.
For AMD CPUs with disabled hardware prefetchers, the gain may
be significant.
2023-01-14 00:03:27 +01:00
Frank Denis
67f1b568c5
GitHub action: Try to use the pre-installed .NET SDK
2023-01-09 12:41:38 +01:00
Frank Denis
7082a787d9
Add a pwhash test with guarded memory; it doesn't hurt
2023-01-09 10:47:15 +01:00