1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00
Commit Graph

4274 Commits

Author SHA1 Message Date
Frank Denis
c7df4b0681 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  midipix support (#1315)
2023-09-14 22:25:35 +02:00
Ørjan Malde
0bbfe33ba9
midipix support (#1315) 2023-09-14 18:00:27 +02:00
Frank Denis
c0dbeb68e2 Import ChangeLog from 1.0.19 2023-09-14 12:00:26 +02:00
Frank Denis
3e86d95ae0 autoconf: proper check for ARM crypto extensions 2023-09-13 19:28:12 +02:00
Frank Denis
e5deb2c85d autoconf: improve check for ARM crypto extensions
And don't forget to include <arm_neon.h> for the second
attempt.
2023-09-13 18:57:27 +02:00
Frank Denis
f26b9f72eb Use ANDROID_CPU_ARM64_FEATURE_AES for AES detection on Android/aarch64 2023-09-13 08:59:14 +02:00
Frank Denis
45aa3adb96 Handle SIGPROT, CHERI's in-address space security exception 2023-09-12 21:02:18 +02:00
Frank Denis
38ada39711 Forgotten attribute pop 2023-09-12 16:02:49 +02:00
Frank Denis
8b1f568cb1 aarch64: try harder when checking for the crypto extensions 2023-09-12 15:57:03 +02:00
Frank Denis
1074191f87 Don't hardcode type sizes 2023-09-12 12:51:53 +02:00
Frank Denis
d2f57c0124 Upgrade Android NDK 2023-09-11 20:24:00 +02:00
Frank Denis
605382399b Promote HKDF to minimal builds 2023-09-11 19:31:38 +02:00
Frank Denis
1ef7b43ae9 Switch AEGIS to 256-bit tags by default 2023-09-11 18:02:24 +02:00
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