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

4307 Commits

Author SHA1 Message Date
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
Frank Denis
0e0e2c1640 Use -O3 instead of -Ofast in dist-build scripts as well 2023-10-20 12:21:06 +02:00
Frank Denis
9ff9301465 Update for Zig-master 2023-10-16 18:07:55 +02:00
Frank Denis
ffd1e37498 Don't use -Ofast; it's buggy on old gcc versions 2023-10-08 19:58:42 +02:00
Frank Denis
7e3500e878 xcframework: use proper --host= flags for Apple targets 2023-09-22 20:03:11 +02:00
Frank Denis
41f34e89bc darwin10 -> darwin23 2023-09-22 19:52:48 +02:00
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