Frank Denis
b7ac85b5b7
Don't hardcode the AEGIS tag length
2023-09-11 17:38:29 +02:00
Frank Denis
2a63dcb04f
MSVC: try building Windows/ARM64 libraries in buildbase.bat
2023-09-11 13:08:46 +02:00
Frank Denis
e15f2f7ffa
New attempt to move Appveyor CI scripts to ci/appveyor
2023-09-11 11:42:54 +02:00
Frank Denis
286530e284
Keep original configurations for top-level libsodium.vcxproj
2023-09-11 02:37:03 +02:00
Frank Denis
e3c0c54e60
Reintroduce 13144d11c1
2023-09-11 02:27:53 +02:00
Frank Denis
e44d293626
Import ARM64.props
2023-09-11 02:27:50 +02:00
Frank Denis
4b9baefce5
Remove Windows/ARM64 support for Visual Studio
2023-09-11 02:19:11 +02:00
Frank Denis
be66af3b27
Debug/DebugLIB
2023-09-11 02:12:32 +02:00
Frank Denis
8cb94b9a74
Revert "The Visual Studio "Debug" target was renamed to "DebugLIB""
...
This reverts commit b9fe85c299
.
2023-09-11 02:08:19 +02:00
Frank Denis
b9fe85c299
The Visual Studio "Debug" target was renamed to "DebugLIB"
...
Spent 3 hours on this, as I wasn't expecting a breaking change.
2023-09-11 02:00:45 +02:00
Frank Denis
c3b923d6c2
Try moving all the Visual Studio/Appveyor stuff into ci/appveyor
2023-09-11 01:53:09 +02:00
Frank Denis
9db77385d0
Visual Studio: define __ARM_NEON on Windows/ARM
2023-09-11 00:58:53 +02:00
Frank Denis
08070591be
Define additional capabilities when using Visual Studio
2023-09-11 00:52:12 +02:00
Frank Denis
5b056f65f8
Import ARM64.props
2023-09-11 00:34:04 +02:00
Frank Denis
8ab880bf95
Reintroduce 13144d11c1
2023-09-11 00:31:01 +02:00
Frank Denis
b5bd5b8771
.NET: assume at least a Sandybridge CPU for x86_64 .NET packages
2023-09-11 00:15:20 +02:00
Frank Denis
ec27581dd3
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:07:44 +02:00
Frank Denis
6704276bc5
Add Visual Studio 2022 build files to the dist tarballs
2023-09-10 23:37:39 +02:00
Frank Denis
3cbdacbd8c
Revert "Enable building win/arm64 package using visual studio ( #1130 )"
...
This reverts commit 13144d11c1
.
It doesn't work.
Trying to open the solutions in Visual Studio results in
"libsodium.vcxproj(8,3): The element <#text> beneath element
<ItemGroup> is unrecognized."
2023-09-10 23:32:42 +02:00
Frank Denis
0c8f366d3e
.NET: target baseline CPU
2023-09-09 20:41:19 +02:00
Frank Denis
0a44a9eb73
Enable more SIMD optimizations when using Zig
2023-09-09 20:38:53 +02:00
Frank Denis
3567436865
Replace the aegis256 implementation with the libaegis implementation
2023-09-09 20:20:54 +02:00
Frank Denis
2056215af5
Update msys2
2023-09-09 17:43:19 +02:00
Frank Denis
e494ce3e69
Move sodium implementations out of their dedicated directory
2023-09-09 17:24:49 +02:00
Frank Denis
3acf050566
Replace aegis128l implementation with libaegis' implementation
2023-09-09 17:24:46 +02:00
Frank Denis
314f603929
Add support for VisionOS
2023-09-09 10:56:02 +02:00
Frank Denis
0df2340a99
Just refer to "aegis" since we have at least 2 variants
2023-09-09 08:54:53 +02:00
Fergus Baker
5191b40acc
Allow other zig projects to use libsodium as a dependency ( #1300 )
...
* fix(build.zig): derive cwd from builder
Using fs.cwd() only resolves the libsodium directory when building from
within libsodium. Deriving the absolute path to the libsodium directory
from the builder allows the build script to be invoked from other
projects.
* feat(build.zig): add options for building libsodium
Added the options to build either the static, shared, and/or tests. The
tests depend on the static library, and therefore imply the static
library.
* feat(build.zig): include header files
2023-09-09 00:39:15 +02:00
Frank Denis
94c650ae80
Proper casts for C++
2023-09-08 23:35:24 +02:00
Frank Denis
c3692bbe0f
Revert "C++ compat"
...
This reverts commit 48a679650e
.
2023-09-08 23:31:27 +02:00
Frank Denis
4776f392ab
Simplify how non-deterministic ed25519 nonces are computed
2023-09-08 23:30:25 +02:00
Frank Denis
258934f5b6
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:01:51 +02:00
Frank Denis
9dc6b80d8c
Bump dev version
2023-09-08 21:44:54 +02:00
Frank Denis
48a679650e
C++ compat
2023-09-08 20:59:33 +02:00
Scr3amer
18fad78494
Add missing undef in _mm_roti_epi64 definition for blake2b-ssse3 ( #1306 )
2023-09-02 22:16:15 +02:00
Frank Denis
503a1ef2c3
Simplify _mm_roti_epi64 definition
2023-09-02 15:23:53 +02:00
Scr3amer
4ebe29b2e3
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:22:20 +02:00
Frank Denis
8ad54cb636
Fallback to _Thread_local on C11 regardless of the platform
2023-09-01 23:43:21 +02:00
Scr3amer
a04c8687ac
Define TLS as _Thread_local is compiler supports C11 ( #1304 )
...
This avoids having warnings when compiling with Clang-MinGW on windows.
2023-09-01 23:37:36 +02:00
Frank Denis
baa75cd1b8
Indent
2023-09-01 16:32:45 +02:00
Frank Denis
0ea62015f2
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:23:30 +02:00
Frank Denis
b828df51dd
scrypt_integerify_sse: be consistent with the no_sse version
2023-08-31 23:18:09 +02:00
Frank Denis
30212c0952
scrypt_nosse: no need to use void * in integerify()
2023-08-31 23:08:56 +02:00
Frank Denis
a3f200abe6
Manually define __ARM_FEATURE_AES (necessary for CheriOS)
2023-08-23 22:18:11 +02:00
Frank Denis
4dc02ce841
Assume all CPUs supported by ARM Windows have the crypto extensions
...
RADDI.net said:
"All supported AArch64 CPUs on desktop Windows 10 and 11 have
both AES (crypto) and NEON, no feature testing needed."
2023-08-05 23:15:33 +02:00
Frank Denis
e698b1b000
Check _M_ARM64 in addition to __aarch64__
2023-08-05 23:04:35 +02:00
Frank Denis
5a8f528b81
Copy libsodium.sln from Visual Studio 2019 to Visual Studio 2022x
2023-08-05 22:58:42 +02:00
Frank Denis
32088e822e
Update resource.rc
2023-08-05 22:43:58 +02:00
Frank Denis
4c8367de7f
Reorder
2023-08-05 11:08:32 +02:00
Frank Denis
22815d222c
Only create a shared library where we know it works
2023-08-05 11:07:20 +02:00