Commit Graph

4021 Commits

Author SHA1 Message Date
Frank Denis
652c081535 Don't hardcode type sizes 2023-09-12 12:52:08 +02:00
Frank Denis
dcf78d77be Inline 2023-09-12 12:38:52 +02:00
Frank Denis
6d5cf12fca define randombytes_set_implementation argument to be const (#1068) 2023-09-12 12:30:19 +02:00
martingd
b335abd946 Error from argon2_hash() during verify propagated. (#1039) 2023-09-12 12:13:49 +02:00
Frank Denis
ed9e3e18f1 Indent 2023-09-12 12:09:39 +02:00
Frank Denis
18727ac58f Nits 2023-09-12 12:08:23 +02:00
Frank Denis
2800307b05 Nits 2023-09-12 12:07:32 +02:00
Frank Denis
0bf1e8db59 Upgrade Android NDK 2023-09-12 11:43:18 +02:00
Frank Denis
6e0c80f169 Remove unused variables 2023-09-11 15:05:43 +02:00
Frank Denis
4f61e088f7 Update ChangeLog 2023-09-11 12:48:58 +02:00
Frank Denis
709fb29e79 Visual Studio: define __ARM_NEON on Windows/ARM 2023-09-11 00:59:59 +02:00
Frank Denis
9a55460523 Define additional capabilities when using Visual Studio 2023-09-11 00:59:51 +02:00
Frank Denis
f60f6e9af4 .NET: assume at least a Sandybridge CPU for x86_64 .NET packages 2023-09-11 00:16:27 +02:00
Frank Denis
d84fbc2304 build.zig: predefine some CPU features
Eventually, we should compile files depending on specific CPU
extensions separately, like what regular Makefiles are doing.
2023-09-11 00:16:19 +02:00
Frank Denis
79e44b494e Add Visual Studio 2022 build files to the dist tarballs 2023-09-10 23:38:05 +02:00
Frank Denis
6c35bcaabf Downgrade ax_valgrind_check 2023-09-10 22:26:31 +02:00
Frank Denis
0aef86d2d3 .NET: target baseline CPU 2023-09-09 20:41:44 +02:00
Frank Denis
bb607f453e Enable more SIMD optimizations when using Zig 2023-09-09 20:39:16 +02:00
Frank Denis
e56aef8c84 Update msys2 2023-09-09 17:44:09 +02:00
Frank Denis
7793ba6bc4 Move sodium implementations out of their dedicated directory 2023-09-09 17:33:02 +02:00
Frank Denis
21223ba7a1 Add ge25519_clear_cofactor() 2023-09-09 13:25:09 +02:00
Frank Denis
1bafad7899 Sync wasi-test-wrapper.sh and wintest.bat 2023-09-09 12:52:02 +02:00
Frank Denis
ac14901c30 Add support for VisionOS 2023-09-09 10:56:20 +02:00
Frank Denis
5e4affe9d8 Support gcc-like and C11-like memory fences 2023-09-09 09:01:51 +02:00
Frank Denis
e95d437f84 Add memory fences where supported 2023-09-09 09:01:44 +02:00
Frank Denis
3a6a6025cc Backport aarch64 support for aes256-gcm 2023-09-09 01:04:48 +02:00
Frank Denis
a12afb7b9d Sync build.zig with 1.0.19 and 1.0.20 2023-09-09 00:43:27 +02:00
Frank Denis
2a72d4501b Simplify how non-deterministic ed25519 nonces are computed 2023-09-08 23:37:55 +02:00
Frank Denis
a77269a21b Regen 2023-09-08 22:03:03 +02:00
Frank Denis
9683141c86 Update m4 scripts
Update ax_check_define.m4
Update ax_check_gnu_make.m4
Update ax_pthread.m4
Update ax_valgrind_check.m4
Update ax_add_fortify_source.m4
2023-09-08 22:02:33 +02:00
Scr3amer
375a01d722 Add missing undef in _mm_roti_epi64 definition for blake2b-ssse3 (#1306) 2023-09-02 22:16:26 +02:00
Scr3amer
4322f15012 Do not redefine _mm_roti_epi64 if xop target feature is enabled. (#1305)
Undefine compiler macro if present and XOP not enable to avoid preprocessor warnings due to macro redefinition
2023-09-02 15:26:00 +02:00
Scr3amer
52b90532f6 Define TLS as _Thread_local if the compiler supports C11 (#1304) 2023-09-01 23:47:12 +02:00
Frank Denis
6256e097c9 scrypt_nosse: Remove the 64-bit version of blkxor()
It broke strict aliasing.

Also remove ARCH_BITS that is not required any longer.

Fixes #1301
2023-08-31 23:27:46 +02:00
Frank Denis
9e42094343 scrypt_integerify_sse: be consistent with the no_sse version 2023-08-31 23:25:52 +02:00
Frank Denis
1913882616 scrypt_nosse: no need to use void * in integerify() 2023-08-31 23:25:47 +02:00
Frank Denis
d569fe35b3 Copy libsodium.sln from Visual Studio 2019 to Visual Studio 2022x 2023-08-05 23:10:55 +02:00
Frank Denis
29f8978f78 Update resource.rc 2023-08-05 22:44:15 +02:00
Frank Denis
411905f83b Reorder 2023-08-05 11:08:44 +02:00
Frank Denis
c298d1a8c6 Only create a shared library where we know it works 2023-08-05 11:07:50 +02:00
Frank Denis
4936130b91 Build shared libraries again, even on Windows 2023-08-05 10:38:39 +02:00
Frank Denis
4388ef37db Require/enable AVX for AES256-GCM 2023-08-05 09:39:11 +02:00
Frank Denis
1686b524ab Remove fix for ARM 2023-08-04 10:53:13 +02:00
Frank Denis
70f5c8f767 Update CI for Zig 0.11.0 2023-08-03 22:39:31 +02:00
Frank Denis
2300119c4f Update for Zig 0.11 2023-08-03 22:35:07 +02:00
Frank Denis
bfc88823e3 config.sub update 2023-08-03 22:33:10 +02:00
Frank Denis
dd7f1ce488 Remove --experimental-wasm-bigint for the tests using Node 2023-07-27 12:13:36 +02:00
Frank Denis
4f099fc593 Add proper CET support (followup to #1290) (#1291) 2023-07-19 18:31:55 +02:00
Frank Denis
f3bd149feb Revert "Build correctly with IBT and Shadow Stack (#1289)"
This reverts commit 5fe02c89a7.
2023-07-19 15:10:52 +02:00
Siddhesh Poyarekar
5fe02c89a7 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:45 +02:00