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

4388 Commits

Author SHA1 Message Date
Frank Denis
5be04ea60e Update MSYS2 to 2024-12-08 2024-12-09 01:16:44 +01:00
Frank Denis
985ad65bfb Remove a non-constant modulo operation in argon2
Adapted from a change originally written by @Sc00bz
2024-11-09 13:24:26 +01:00
Frank Denis
cd6b337b37 Switch from goto-bus-stop/setup-zig to mlugg/setup-zig 2024-11-04 00:02:13 +01:00
Frank Denis
cd92e5cfc8 Sync softaes with libaegis 2024-10-23 22:10:27 +02:00
Frank Denis
0c1a25e9d1 Use an optblocker in crypto_verify_n() 2024-10-23 19:58:33 +02:00
Frank Denis
51d2455cd8 Decrement and shift in separate steps 2024-10-23 19:51:10 +02:00
Frank Denis
d0eb23e532 Add assembly versions of equal() and negative() 2024-10-23 19:24:13 +02:00
Frank Denis
d6dd9c3ce0 More optblocker usage 2024-10-23 19:08:20 +02:00
Frank Denis
b1f9c53875 Add another optblocker 2024-10-23 18:42:48 +02:00
Frank Denis
7154fb9041 randombytes_internal_random.c: move clang target attribute down
Specifically, move it after the system includes.

This appears to address an issue with clang 18 when cross-compiling
to windows.

Fixes #1413
2024-09-26 21:59:59 +02:00
Frank Denis
b4ad79202b dotnet-core.yml: try setting include-hidden-files: true
Some checks failed
CI / tcc (push) Has been cancelled
CI / zig (push) Has been cancelled
CI / regular (push) Has been cancelled
CI / check-globals (push) Has been cancelled
CI / other-comp (push) Has been cancelled
CI / other-arch (push) Has been cancelled
CI / android (push) Has been cancelled
CodeQL scan / Analyze (c-cpp) (push) Has been cancelled
Fixes #1414
2024-09-26 21:12:51 +02:00
Frank Denis
babb0dd860 Sync
Some checks are pending
CI / tcc (push) Waiting to run
CI / zig (push) Waiting to run
CI / regular (push) Waiting to run
CI / check-globals (push) Waiting to run
CI / other-comp (push) Waiting to run
CI / other-arch (push) Waiting to run
CI / android (push) Waiting to run
2024-09-25 21:42:41 +02:00
Frank Denis
beec06eb46 Revert "RFC9381 ECVRF implementation (#1188)"
This reverts commit 7978205916.
2024-09-25 21:37:31 +02:00
Frank Denis
101610670a Remove empty line 2024-09-18 12:40:45 +02:00
Frank Denis
a8255da9df Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Add support for Android's new 16K page sizes (#1407)
2024-09-18 12:39:34 +02:00
Frank Denis
8e245590d8 Remove unused variables 2024-09-18 12:39:21 +02:00
Saud Khan
d2694fc37d
Add support for Android's new 16K page sizes (#1407) 2024-09-11 16:04:43 +02:00
mschwarzl
1012bbc380
Support for Cloudflare Workers for javascript_stir (#1401)
* Support for Cloudflare Workers for javascript_stir

* Ramove debugging comment

---------

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2024-08-13 21:40:10 +02:00
Frank Denis
01379fe68c Disable ssp on Solaris where people may use old toolchains 2024-08-11 15:06:04 +02:00
Frank Denis
6edcd85169 Add another optblocker 2024-08-01 14:32:16 +02:00
Frank Denis
92611e300d Start introducing optblockers to prevent unwanted conditional jumps 2024-08-01 14:25:32 +02:00
Frank Denis
8c54312a62 Remove aarch64_32 2024-08-01 14:16:25 +02:00
Frank Denis
633f922791 Indent 2024-08-01 13:56:57 +02:00
SeungHwan Hur
e1861bb935
help MSVC optimize ROL/ROR functions (#1392) 2024-08-01 13:55:04 +02:00
Frank Denis
563ec3d3e5 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Regen dist-build/emscripten.sh
2024-07-11 09:23:03 +02:00
Frank Denis
e7802e6a9e Warn if we find VLAs 2024-07-11 09:21:37 +02:00
Frank Denis
0c1ea8aa4d Regen dist-build/emscripten.sh 2024-07-08 18:29:09 +02:00
Frank Denis
f92e5ae836 Fix flaky non-deterministic box_seal tests
With very small messages, there's a significant probability that the
ciphertext is identical to the message.

Fixes #1388
2024-06-30 21:11:49 +02:00
Frank Denis
65420794cf Add .zig-cache to .gitignore 2024-06-23 13:21:53 +02:00
Frank Denis
4a15ab7cd0 fe25519_{abs,cneg} require a single argument
They were always used with the same input and output pointers,
so their definition can be simplified.

Fixes #1376
2024-05-30 16:06:56 +02:00
Frank Denis
704e97fdf5 Proper zeroization in hkdf
Fixes #1375
2024-05-30 15:56:54 +02:00
Iñigo Querejeta Azurmendi
7978205916
RFC9381 ECVRF implementation (#1188)
* Version 12 of ECVRF

* Incorrect ordering of function inputs

* Identation and notation

* single multiscalar multiplication function

Also changed the style of tests, where the expected output is in vrf.exp rather than in test data (following the style of the hashing).

* declarations inside the if code block

* identation of test_data

* Rename to RFC9381

* Move declarations to top of block

* Check small order over deserialised PK

* Include from_string functions in ed25519_ref10

* Update quirks.h

---------

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2024-05-25 18:55:14 +02:00
Frank Denis
43173b8354 Update ChangeLog 2024-05-25 14:37:41 +02:00
Frank Denis
0a44f6b1f5 Add forgotten distribution files 2024-05-25 14:15:07 +02:00
Frank Denis
a67325c42c AEGIS: improve performance of AD absorption on x86_64
No apparent regression on other platforms.

Adapted from libaegis.
2024-05-25 00:41:08 +02:00
Frank Denis
193cab86d3 constcheck: include Homebrew paths by default 2024-05-24 13:16:54 +02:00
Frank Denis
f00e05cde5 Add quotes 2024-05-24 12:48:16 +02:00
Frank Denis
73dce539ed Update ChangeLog 2024-05-23 15:56:38 +02:00
Frank Denis
90c1229b05 Undefine HAVE_{AMD64,AVX}_ASM with the Windows calling convention
Fixes #1371
2024-05-23 15:48:56 +02:00
Frank Denis
7858b58b35 emscripten: create JS-only builds 2024-05-23 15:42:35 +02:00
Frank Denis
9703516a5e Try running the JavaScript tests with Bun before Node 2024-05-20 21:37:16 +02:00
Frank Denis
9c0c1f709e Revert "Avoid 128-bit arithmetic when on WebAssembly targets"
This reverts commit 74781400dc.
2024-05-19 16:31:02 +02:00
Frank Denis
c9c34fb31f Always add -enable-sign-ext to the wasm-opt command-line
At least LLVM 18 seems to emit these instructions by default.
2024-05-19 13:04:29 +02:00
Frank Denis
b582d20ab4 WASI: disable PIE. PIE doesn't work with WASI. 2024-05-19 11:22:21 +02:00
Frank Denis
6e27e98777 Remove CI test for x86-linux 2024-05-09 22:31:49 +02:00
Frank Denis
4ad956470f Explicitly enabling evex512 is now required with LLVM 18 2024-05-09 22:27:45 +02:00
Frank Denis
2f003eead5 Replace .{ .path= ...} with b.path() 2024-05-09 21:28:34 +02:00
Frank Denis
f927de1702 Update msys2 to version 20240507 2024-05-07 14:14:53 +02:00
Frank Denis
113781628b Add GitHub attestation build provenance for NuGet packages 2024-05-02 23:28:10 +02:00
Frank Denis
a904cb8aad .NET: update minimal supported versions to .NET 8 2024-04-29 11:38:24 +02:00