1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 12:36:01 -07:00
Commit Graph

4102 Commits

Author SHA1 Message Date
Frank Denis
15c4730042 Use current versions of GitHub actions 2022-11-23 20:03:58 +01:00
Frank Denis
6251ccb8f7 dotnet-core: bump GitHub actions versions, and use Ubuntu 18.04 as a base 2022-11-23 20:03:54 +01:00
Frank Denis
6e8468d875 Support memset_explicit() if available
NetBSD has explicit_memset(), but C23 decided to implement the
same thing but call it memset_explicit() instead. Go figure.
2022-11-21 15:29:44 +01:00
Frank Denis
415bce5d97 dist-build: use -Ofast or -O3 2022-11-21 13:01:44 +01:00
Frank Denis
ece8e60524 AEGIS: add a specialized function to absorb the AD 2022-11-20 18:16:13 +01:00
DavidKorczynski
43d5a33931
GitHub CI: Add CIFuzz integration (#1231)
Signed-off-by: David Korczynski <david@adalogics.com>

Signed-off-by: David Korczynski <david@adalogics.com>
2022-11-19 23:03:24 +01:00
Frank Denis
dd5c2bf23c Make the AEGIS code for ARM and Intel similar 2022-11-17 22:32:37 +01:00
Frank Denis
af679cfb66 Add _mm_set_epi64x emulation if required 2022-11-17 13:48:45 +01:00
Frank Denis
de83673ae4 Add some sanity checks 2022-11-17 13:04:22 +01:00
Frank Denis
104de0dcd1 clsq128(): simplify squaring 2022-11-16 22:51:44 +01:00
Frank Denis
cda2788e00 Add -Wno-unknown-pragmas if supported 2022-11-16 19:05:39 +01:00
Frank Denis
9590e64fce salsa20: initialize partial block
A compiler trying to be too smart could notice that we are shifting
ununitialized data (even though we then discard it), and apply
unwanted optimizations.
2022-11-16 13:39:20 +01:00
Frank Denis
3105de25da Simplify 2022-11-16 13:25:00 +01:00
Frank Denis
6a81ad2b25 Repair CFLAGS/ CWFLAGS mixup 2022-11-16 10:59:08 +00:00
Frank Denis
07d83b808e -mcpu=native -> -mtune=native 2022-11-14 23:21:53 +01:00
Frank Denis
6d1d7ed9fb GitHub CI: check compilation with zig cc 2022-11-14 22:16:24 +01:00
Frank Denis
ae82b44b70 ghash: move addmul operation into inline functions 2022-11-14 22:07:02 +01:00
Frank Denis
8489b4d124 __vectorcall didn't exist prior to Visual Studio 2012 2022-11-14 13:12:15 +01:00
Frank Denis
ad3241a0da Add __vectorcall to please MSVC 2022-11-14 12:51:11 +01:00
Frank Denis
7ffd2a9057 Azure Pipelines: update Zig to 0.10.0 to compile to WebAssembly/WASI 2022-11-14 00:30:40 +01:00
Frank Denis
5ef0f9d486 Azure pipelines: the vs2017-win2016 image doesn't exist any more 2022-11-14 00:24:51 +01:00
Frank Denis
62c0a60a00 Last exit() -> _exit() in misuse test 2022-11-14 00:08:38 +01:00
Frank Denis
6bcaccafab exit() -> _exit() in misuse test 2022-11-14 00:05:28 +01:00
Frank Denis
479c370bc1 Require zig cc or clang for the amazing __builtin_shufflevector() 2022-11-13 23:53:28 +01:00
Frank Denis
55b4510986 sodium_utils tests: exit() -> _exit() 2022-11-13 23:49:38 +01:00
Frank Denis
870c6fc53f Promote -Wno-deprecated-declarations to CFLAGS 2022-11-13 23:42:34 +01:00
Frank Denis
0308caa7eb Improve AX_CHECK_CATCHABLE_SEGV 2022-11-13 23:16:58 +01:00
Frank Denis
ad4584d455 Try using -Ofast / -O3 by default 2022-11-13 22:52:29 +01:00
Frank Denis
b677924b2e Use enum instead of integers for C++ compat 2022-11-13 22:36:54 +01:00
Frank Denis
495a16cbe0 MSVC cannot compile AES-GCM for now 2022-11-13 21:26:04 +01:00
Frank Denis
379cd8303b Avoid C99isms 2022-11-13 21:23:19 +01:00
Frank Denis
ae8f462ad3 Avoid gcc extensions in aead_aes256gcm_aesni 2022-11-13 21:18:03 +01:00
Frank Denis
a3521f1e85 configure.ac: add -Wno-deprecated-declarations 2022-11-13 21:08:41 +01:00
Frank Denis
36d0196a4a Don't try ARM Crypto implementations on big-endian yet 2022-11-13 20:56:21 +01:00
Frank Denis
77c676a9e1 Zig build: enable ARM Crypto 2022-11-13 20:50:27 +01:00
Frank Denis
f3cf71edd7 Add AES256-GCM support for ARM crypto 2022-11-13 20:23:15 +01:00
Frank Denis
45a0cef2fc AES-NI can be available on i386 2022-11-13 19:40:39 +01:00
Frank Denis
73d039d8ca Remove unused macro 2022-11-13 18:46:22 +01:00
Frank Denis
9b623852bd Rewrite the AES256-GCM implementation
Faster, way more readable, easier to port to other architectures.
2022-11-13 18:42:38 +01:00
Frank Denis
a972fe6498 Indent 2022-10-21 17:54:39 +02:00
Frank Denis
992168c50f Win32: SecureZeroMemory may not be available 2022-10-20 14:42:55 +02:00
Frank Denis
ee11a1ff8a Update build.zig for Zig-current 2022-10-20 14:42:39 +02:00
Frank Denis
b4c5d37fb5 scalarmult(): don't use the output as a temporary buffer
So that application can use the same pointer for the public key
and the shared secret.
2022-10-11 14:02:29 +02:00
Elie Hage
3a99e1ec8a
Add support for arm64 watchOS (#1211) 2022-09-23 17:29:44 +02:00
Frank Denis
c281249fd8 Add -Warray-bounds if supported 2022-09-19 15:26:22 +02:00
Javier Navarro
907c2b64ef
ios: remove the support for bitcode (#1210) 2022-09-19 14:04:02 +02:00
bfren
7621b135e2 [dotnet core] build for linux-musl-arm64 (#1174)
* Adding aarch64 build

* Removing workflow_dispatch

* Re-adding x64

* Disable libgcrypt hash - #1173

* Adding sudo to gcrypt disable - #1173

* Remove sudo, put gcrypt disable before building source list - #1173

* Adding linux-musl-arm64 build to NuGet package - #1174

* Explain the gcrypt configuration hack
2022-08-15 16:48:19 +02:00
Steve Thomas
0a6178f203
Clear decrypted block from stack (#1190) 2022-06-18 20:32:35 +02:00
Frank Denis
f333ea1beb Remove ARM64 support from AppVeyor 2022-06-14 14:46:54 +02:00
Frank Denis
a0058a7623 Strip builds 2022-06-07 17:35:41 +02:00