Commit Graph
796 Commits
Author SHA1 Message Date
Frank Denis 557dc9e51d Add a high-level crypto_kem API mapping to xwing 2026-01-15 23:29:59 +01:00
Frank Denis bd6a8af323 Add X-Wing 2026-01-15 23:26:59 +01:00
Frank Denis bc43c46a43 Cleanup symbols 2026-01-15 23:18:59 +01:00
Frank Denis 036e268e17 Add new symbols 2026-01-15 23:10:59 +01:00
Frank Denis a6038f815c Add support for SHA3 2026-01-15 23:03:59 +01:00
Frank Denis aed0ed992d Update test/symbols/all-symbols.txt 2026-01-07 23:05:39 +01:00
Frank Denis 60b528c3dd Export missing crypto_ipcrypt_nd_keygen() helper function 2026-01-07 23:00:39 +01:00
Frank Denis 52975b38ce Add ARM acceleration for SHA3 2026-01-06 23:18:21 +01:00
Frank Denis 8a7378460f Add crypto_core_keccak1600_state, remove keccak1600_STATEBYTES 2026-01-06 23:00:21 +01:00
Frank Denis dc12719756 Add more tests 2026-01-05 23:20:32 +01:00
Frank Denis 5aff9f2d89 Rename parameters to improve clarity 2026-01-05 23:12:32 +01:00
Frank Denis 5766a9acd3 Change sodium_ip2bin to take the ip length 2026-01-05 23:09:32 +01:00
Frank Denis 598f5da725 NuGET is gone 2026-01-03 10:20:54 +01:00
Frank Denis f9b3676a1d Add a script to check version consistency 2026-01-03 10:19:55 +01:00
Frank Denis e6a7bc2df4 Rename ip2bytes and bytes2ip to ip2bin and bin2ip for consistency 2025-12-31 12:35:41 +01:00
Frank Denis 52fbfd80ed Update symbols list 2025-12-31 12:25:34 +01:00
Frank Denis 20452e34d5 Add test for IP conversion functions 2025-12-31 12:23:39 +01:00
Frank Denis 245b63bfcf Cleanup the ipcrypt tests 2025-12-30 12:00:40 +01:00
Frank Denis ab8a8a1ee6 Add PFX variant 2025-12-30 01:35:44 +01:00
Frank Denis 864e1b27b3 Add in-place encryption test 2025-12-30 00:58:26 +01:00
Frank Denis 7a58f66b43 SHAKE: add a test for custom delimiters with the MSB set 2025-12-30 00:42:54 +01:00
Frank Denis 8c84e36514 Use consistent names for ipcrypt array lengths 2025-12-29 23:13:17 +01:00
Frank Denis f4cae188c4 Add extra scalarmult tests 2025-12-29 22:09:37 +01:00
Frank Denis ad3004ec87 core_ed25519_is_valid_point: check Y==Z in addition to X==0 2025-12-29 22:09:31 +01:00
Frank Denis fc79c5d6b2 Remove crypto_core_ed25519_from_uniform 2025-12-29 16:08:36 +01:00
Frank Denis 2909039095 test/default/kem_mlkem768.c: check return codes 2025-12-09 23:00:11 +01:00
Frank Denis 1b95172b82 Add ML-KEM768 2025-12-09 01:00:51 +01:00
Frank Denis caf84c54d6 Cleanup ipcrypt tests 2025-12-08 20:51:29 +01:00
Frank Denis 47591065ba Remove unused variables 2025-12-08 16:02:28 +01:00
Frank Denis 5678a8af28 Remove unused variable 2025-12-08 16:01:28 +01:00
Frank Denis 020441853d Remove unused code 2025-12-08 16:01:13 +01:00
Frank Denis 22f9b38d39 Import ipcrypt 2025-12-08 23:15:08 +01:00
Frank Denis be8e2275ca Add ipcrypt support 2025-12-08 23:08:08 +01:00
Frank Denis 9bd8c45140 Add XOF tests at rate boundary 2025-11-26 23:03:42 +01:00
Frank Denis 37e4f5860b SHAKE: align default separator and test vectors with Zig
And remove redundant macros
2025-11-18 12:10:59 +01:00
Frank Denis d11e907107 Remove crypto_xof_*_final 2025-11-18 12:00:59 +01:00
Frank Denis 0a9450c679 Add SHAKE and TurboSHAKE 2025-10-18 11:31:29 +02:00
Frank Denis 110138f3cd Wasmer now needs --mapdir=./:. to load files from the current directory 2025-08-27 22:56:54 +02:00
Frank Denis 3e12b517ee tests/sodium_utils3: skip SIGSEGV check when tsan is enabled
Fixes #1450
2025-05-08 22:56:10 -06:00
Frank Denis babb0dd860 Sync 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 8e245590d8 Remove unused variables 2024-09-18 12:39:21 +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
Iñigo Querejeta AzurmendiandFrank Denis 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 193cab86d3 constcheck: include Homebrew paths by default 2024-05-24 13:16:54 +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 44b99c5a23 Add forgotten crypto_kdf_hkdf_sha512_statebytes() 2023-11-29 22:02:37 +01:00
Frank Denis 5466030cce egrep -> grep -E 2023-11-23 13:34:36 +01:00
Frank Denis 39184b5b96 Include argon2id in crypto_pwhash_primitive()
Fixes #1331
2023-11-10 12:12:02 +01:00
Frank Denis 45aa3adb96 Handle SIGPROT, CHERI's in-address space security exception 2023-09-12 21:02:18 +02:00