Frank Denis
da0ce565d2
Use clang pragmas to enable features rather than depend on compiler settings
2024-04-27 23:05:38 +02:00
Frank Denis
c9a92ea41a
Update zig action; musl builds are static
2024-04-27 00:54:11 +02:00
Frank Denis
fae180b7ab
Revert "Zig build: enable CPU-specific flags only on relevant files"
...
This reverts commit 9b369db0d5
.
2024-04-27 00:51:20 +02:00
Frank Denis
d3f165405f
Revert "Try changing the target for every lib"
...
This reverts commit 45ee1c31b8
.
2024-04-27 00:51:10 +02:00
Frank Denis
be7c9c2f51
Revert "Do not install CPU-specific libs"
...
This reverts commit e6b1f1c9f2
.
2024-04-27 00:50:57 +02:00
Frank Denis
ef17ae3923
Test compilation on x86-linux and x86-windows
2024-04-26 15:34:22 +02:00
Frank Denis
e6b1f1c9f2
Do not install CPU-specific libs
2024-04-26 15:26:09 +02:00
Frank Denis
45ee1c31b8
Try changing the target for every lib
2024-04-26 15:21:10 +02:00
Frank Denis
9b369db0d5
Zig build: enable CPU-specific flags only on relevant files
...
Fixes https://github.com/jedisct1/libsodium/discussions/1358
2024-04-26 13:50:49 +02:00
Frank Denis
edb94a99a6
Remove redundant definition
2024-04-26 13:50:40 +02:00
Frank Denis
74781400dc
Avoid 128-bit arithmetic when on WebAssembly targets
...
See https://github.com/WebAssembly/tool-conventions/pull/223#issuecomment-2052101191
2024-04-12 19:19:48 +02:00
Frank Denis
f8ca998c52
Update for zig-current
2024-04-08 21:16:26 +02:00
Frank Denis
b7b1d027cc
Avoid quote
2024-04-08 18:59:30 +02:00
Frank Denis
07ccd8d8ae
Revert "Improve Debian package"
...
This reverts commit a2c75d7f29
.
2024-04-02 08:22:57 +02:00
Frank Denis
a2c75d7f29
Improve Debian package
2024-04-01 15:01:52 +02:00
Frank Denis
055a54655a
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
Fixed xcframework build for iOS 11 and later (#1361 )
2024-03-25 17:18:39 +01:00
Nikita Savko
8806992b1b
Fixed xcframework build for iOS 11 and later ( #1361 )
...
* Fixed inability to create xcframework with minimal iOS deployment target newer than iOS 10.x
* Set OS_VERSION_MIN as default value for OS_SIMULATOR_VERSION_MIN
2024-03-25 17:15:38 +01:00
Frank Denis
810abf2d9b
Emscripten: --memory-init-file is not supported any more
2024-03-24 13:10:45 +01:00
Frank Denis
e08d3e59e1
Emscripten: export crypto_aead_aegis* in standard builds
2024-03-24 10:44:55 +01:00
Frank Denis
5fc2aff012
Update checkout action to v4
2024-03-03 23:19:34 +01:00
小明
7e6ea701b7
fixed inability to create xcframework in Symbolic Link ( #1356 )
...
Creating Clibsodium.xcframework...
error: cannot compute path of binary 'Path(str: "/private/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a")' relative to that of '/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a'
ls: /tmp/libsodium-stable/libsodium-apple/Clibsodium.xcframework: No such file or directory
ls -l /tmp
lrwxr-xr-x@ 1 root wheel 11 12 15 22:43 /tmp -> private/tmp
2024-02-29 11:19:58 +01:00
Tobias Nießen
4cdcefaff2
It's been a decade ( #1351 )
2024-02-17 15:11:56 +01:00
Andrzej Fiedukowicz
b564794edd
Move includes in crypto_onetimeauth_poly1305.h outside of extern C ( #1345 )
...
Includes being outside of `extern "C"` are de-facto standard in all other include files of libsodium.
At the same time, having inside the `extern "C"` is causing problem with C++ vs. C toolchain being confused about which libraries should be linked. This was especially painful while working on `swift-sodium` integration with windows.
2024-01-17 15:06:11 +01:00
Frank Denis
f62efca336
Update MSYS2
2024-01-13 22:49:20 +01:00
Frank Denis
b39a9072ea
Update ChangeLog
2024-01-07 19:19:33 +01:00
Frank Denis
2ac811eac7
2024
2024-01-07 19:15:51 +01:00
Frank Denis
4c56848dcc
When using MSVC on aarch64, __ARM_ARCH is not defined
...
Reported by RADDI.net -- Thanks!
2024-01-07 16:14:21 +01:00
Frank Denis
56bef8abc5
Update setup-zig action
2024-01-04 13:06:18 +01:00
Frank Denis
5696d735c4
2024
2024-01-04 12:07:31 +01:00
Frank Denis
3990da5802
Update for zig-master
2024-01-04 12:07:16 +01:00
Frank Denis
93a6e79750
Sync
2023-11-30 15:45:40 +01:00
Frank Denis
712d0f3fb9
Bump dev version
2023-11-29 22:10:35 +01:00
Frank Denis
44b99c5a23
Add forgotten crypto_kdf_hkdf_sha512_statebytes()
2023-11-29 22:02:37 +01:00
Frank Denis
6d906294c9
Set .iterate = true on dirs that will be traversed
2023-11-24 14:54:56 +01:00
Frank Denis
547dde9387
Require Zig 0.12
2023-11-24 13:52:42 +01:00
Frank Denis
5466030cce
egrep -> grep -E
2023-11-23 13:34:36 +01:00
Frank Denis
5dd81ad0cd
Zig: use "const" for variables that are never mutated
2023-11-20 18:58:50 +01:00
Frank Denis
39184b5b96
Include argon2id in crypto_pwhash_primitive()
...
Fixes #1331
2023-11-10 12:12:02 +01:00
Frank Denis
b5eaa810c8
Revert "Include argon2id in crypto_pwhash_primitive()"
...
This reverts commit a2b12dfcc0
.
2023-11-10 12:10:10 +01:00
Frank Denis
a2b12dfcc0
Include argon2id in crypto_pwhash_primitive()
...
Fixes #1331
2023-11-10 11:30:47 +01:00
Frank Denis
6ee5a73452
Add a comment where coordinates are expected to be normalized
2023-11-08 07:37:12 +01:00
Frank Denis
6c05a64bfe
Zig 0.12 compat
2023-11-02 06:51:29 +01:00
Frank Denis
51126865d0
_M_AMD64 is the same as _M_X64
2023-11-02 06:40:17 +01:00
Frank Denis
1d03ea77fb
Make aegis_mac() fallible
...
So that we can include additional checks, especially for weak states.
Ideally, weak states should be checked after every update, but they
would be especially bad when the cipher is used as a stream cipher.
And in that case, checking for a weak state only at the end is
sufficient.
2023-11-01 19:12:15 +01:00
Frank Denis
72932a768f
Update CodeQL script
2023-11-01 12:20:31 +01:00
Frank Denis
81aed0e45d
Typo
2023-10-20 15:46:37 +02:00
Frank Denis
5d9f54325f
Update ChangeLog
2023-10-20 15:16:16 +02:00
Frank Denis
16cd369c65
Don't compile for VisionOS if Xcode doesn't support it
...
Drop APPLE_SILICON_SUPPORTED, since Xcode has had support for it
for ages.
2023-10-20 15:15:13 +02:00
Frank Denis
8f453f41f8
aarch64: set compiler attributes *after* including <arm_neon.h>
...
Fixes #1321
2023-10-20 13:47:57 +02:00
Frank Denis
cb4d121517
Try to support both zig 0.11 and zig-master
2023-10-20 12:33:25 +02:00