]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
29 hours agoMore randomized tests of ml-kem, add asserts for arithmetic primitives. master master-updates
Niels Möller [Fri, 5 Jun 2026 17:30:16 +0000 (19:30 +0200)] 
More randomized tests of ml-kem, add asserts for arithmetic primitives.

2 days agoMove assert_maybe macro to nettle-internal.h.
Niels Möller [Thu, 4 Jun 2026 17:15:40 +0000 (19:15 +0200)] 
Move assert_maybe macro to nettle-internal.h.

2 days agoAvoid branch instruction in ecc_secp256r1_modq
Niels Möller [Thu, 4 Jun 2026 16:52:19 +0000 (18:52 +0200)] 
Avoid branch instruction in ecc_secp256r1_modq

Reportedly, gcc-15 and gcc-16 on riscv64 generates a branch
instruction for r += (mask & (d1 + 1)). Rewrite as
r += (mask << 32) | (mask & 1), suggested by Felix Yan.

6 days agoAdd missing ml-kem test files to distribution.
Niels Möller [Sun, 31 May 2026 11:00:07 +0000 (13:00 +0200)] 
Add missing ml-kem test files to distribution.

6 days agoChangeLog entries for ml-kem.
Niels Möller [Sun, 31 May 2026 09:36:34 +0000 (11:36 +0200)] 
ChangeLog entries for ml-kem.

8 days agoDocument ML-KEM support 67/head
Daiki Ueno [Wed, 13 May 2026 08:48:30 +0000 (17:48 +0900)] 
Document ML-KEM support

Signed-off-by: Daiki Ueno <dueno@redhat.com>
8 days agoAdd support for ML-KEM key encapsulation mechanism
Daiki Ueno [Thu, 29 Feb 2024 08:34:55 +0000 (17:34 +0900)] 
Add support for ML-KEM key encapsulation mechanism

This adds support for ML-KEM key encapsulation mechanism standardized
in FIPS 203[1].

1. https://doi.org/10.6028/NIST.FIPS.203

Signed-off-by: Daiki Ueno <dueno@redhat.com>
Modified-by: Justus Winter <justus@sequoia-pgp.org>
3 weeks agoDefine and use NONSTRING attribute. use-has_attribute
Niels Möller [Tue, 12 May 2026 18:21:36 +0000 (20:21 +0200)] 
Define and use NONSTRING attribute.

3 weeks agoUse __has_attribute for _NETTLE_ATTRIBUTE_PURE, delete _NETTLE_ATTRIBUTE_DEPRECATED.
Niels Möller [Tue, 12 May 2026 18:03:20 +0000 (20:03 +0200)] 
Use __has_attribute for _NETTLE_ATTRIBUTE_PURE, delete  _NETTLE_ATTRIBUTE_DEPRECATED.

3 weeks agoDelete configure-time test for attribute support, in favor of __has_attribute.
Niels Möller [Mon, 11 May 2026 17:51:22 +0000 (19:51 +0200)] 
Delete configure-time test for attribute support, in favor of __has_attribute.

4 weeks agoFix outdated FSF address in license grant headers.
Andreas Metzler [Mon, 4 May 2026 11:11:01 +0000 (13:11 +0200)] 
Fix outdated FSF address in license grant headers.

4 weeks agoUpdate text of COPYINGv2 and COPYINGv3, to latest from https://www.gnu.org/licenses/
Niels Möller [Fri, 8 May 2026 13:39:03 +0000 (15:39 +0200)] 
Update text of COPYINGv2 and COPYINGv3, to latest from https://www.gnu.org/licenses/

Removes outdated FSF postal address and updates some URLs. Reported by Andreas Metzler.

4 weeks agoInitial NEWS entries for Nettle-4.1.
Niels Möller [Fri, 8 May 2026 13:29:46 +0000 (15:29 +0200)] 
Initial NEWS entries for Nettle-4.1.

4 weeks agoDocument sntrup761 support. sntrup-integration
Niels Möller [Thu, 7 May 2026 18:19:58 +0000 (20:19 +0200)] 
Document sntrup761 support.

4 weeks agoAdd benchmarking of sntrup761.
Niels Möller [Thu, 7 May 2026 18:14:37 +0000 (20:14 +0200)] 
Add benchmarking of sntrup761.

4 weeks agoAdd sntrup761 tests.
Niels Möller [Thu, 7 May 2026 17:54:31 +0000 (19:54 +0200)] 
Add sntrup761 tests.

4 weeks agoAdd Streamlined NTRU Prime sntrup761.
Niels Möller [Thu, 7 May 2026 17:32:03 +0000 (19:32 +0200)] 
Add Streamlined NTRU Prime sntrup761.

4 weeks agoci: Disable side-channel tests in ubsan build.
Niels Möller [Tue, 31 Mar 2026 17:56:15 +0000 (19:56 +0200)] 
ci: Disable side-channel tests in ubsan build.

4 weeks agoRework test randomization, new functions test_get_seed and test_randinit. add-test_random_seed
Niels Möller [Sun, 3 May 2026 18:12:53 +0000 (20:12 +0200)] 
Rework test randomization, new functions test_get_seed and test_randinit.

5 weeks agoFix arithmetic overflow issues in sexp parser.
Niels Möller [Thu, 30 Apr 2026 18:52:45 +0000 (20:52 +0200)] 
Fix arithmetic overflow issues in sexp parser.

7 weeks agoMove read_hex_file from slh-dsa-test.c to testutils.c
Daiki Ueno [Thu, 30 Oct 2025 03:35:15 +0000 (12:35 +0900)] 
Move read_hex_file from slh-dsa-test.c to testutils.c

The function is also useful for ML-KEM and ML-DSA tests, whose test
vectors are large.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 weeks agoSynchronize func signatures between code and docs
Georg Sauthoff [Fri, 3 Apr 2026 12:39:23 +0000 (14:39 +0200)] 
Synchronize func signatures between code and docs

This mostly affects function signatures in the manual, i.e. to reflect
prior code changes where e.g. uint8_t pointers were corrected to char
pointers.

NB, this change is limited to the base64/base16 functions, deviations in
other translation units can be addressed with follow-up patches.

2 months agoFix missing const in drbg_ctr_aes256_init prototype.
Niels Möller [Sat, 4 Apr 2026 17:48:19 +0000 (19:48 +0200)] 
Fix missing const in drbg_ctr_aes256_init prototype.

2 months agodoc: Document subtely with public input to eddsa signing.
Niels Möller [Thu, 19 Mar 2026 18:18:49 +0000 (19:18 +0100)] 
doc: Document subtely with public input to eddsa signing.

3 months agoNote Nettle-4.0 release in ChangeLog.
Niels Möller [Tue, 10 Feb 2026 18:16:55 +0000 (19:16 +0100)] 
Note Nettle-4.0 release in ChangeLog.

4 months agoMake tar file generation closer to reproducible trim-tar-metadata nettle_4.0_release_20260205
Niels Möller [Wed, 4 Feb 2026 13:30:34 +0000 (14:30 +0100)] 
Make tar file generation closer to reproducible

4 months agoFix texinfo syntax.
Niels Möller [Sun, 1 Feb 2026 14:18:26 +0000 (15:18 +0100)] 
Fix texinfo syntax.

4 months agoChangeLog and NEWS entries for drbg_ctr_aes256_update.
Niels Möller [Sat, 31 Jan 2026 09:42:56 +0000 (10:42 +0100)] 
ChangeLog and NEWS entries for drbg_ctr_aes256_update.

4 months agoMerge branch with drbg_ctr_aes256_update into master
Niels Möller [Sat, 31 Jan 2026 09:25:45 +0000 (10:25 +0100)] 
Merge branch with drbg_ctr_aes256_update into master

4 months agoExpose drbg_ctr_aes256_update
Daiki Ueno [Thu, 29 Jan 2026 23:13:35 +0000 (08:13 +0900)] 
Expose drbg_ctr_aes256_update

To adhere to FIPS 140-3, the CTR_DRBG instance shall be reseeded after
a certain number of generation requests (2^48, according to SP800 90A
10.2.1, table 3). To allow applications to implement that restriction,
expose drbg_ctr_aes256_update as a public function.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
4 months agoUse a C99 flexible array for struct tstring.
Niels Möller [Thu, 29 Jan 2026 07:29:23 +0000 (08:29 +0100)] 
Use a C99 flexible array for struct tstring.

4 months agoMore consistent entry point alignment in asm files. fix-asm-align
Niels Möller [Wed, 28 Jan 2026 13:20:37 +0000 (14:20 +0100)] 
More consistent entry point alignment in asm files.

4 months agoDelete trailing semicolons on DECLARE_FAT_* usage. nettle_4.0rc1
Niels Möller [Sun, 25 Jan 2026 15:53:23 +0000 (16:53 +0100)] 
Delete trailing semicolons on DECLARE_FAT_* usage.

Reported by Amol Surati.

4 months agoUpdate config.guess and config.sub.
Niels Möller [Sat, 24 Jan 2026 16:43:31 +0000 (17:43 +0100)] 
Update config.guess and config.sub.

4 months agoMention ed448 fix in NEWS.
Niels Möller [Sat, 24 Jan 2026 16:21:53 +0000 (17:21 +0100)] 
Mention ed448 fix in NEWS.

4 months agoAdd missing check that the final octet of an ed448 signature is zero.
Niels Möller [Thu, 22 Jan 2026 18:02:43 +0000 (19:02 +0100)] 
Add missing check that the final octet of an ed448 signature is zero.

4 months agodoc: Revise outdated text in the manual.
Niels Möller [Sun, 18 Jan 2026 15:28:23 +0000 (16:28 +0100)] 
doc: Revise outdated text in the manual.

4 months agoFix a few minor typos in the SLH-DSA documentation.
Niels Möller [Sat, 17 Jan 2026 11:01:14 +0000 (12:01 +0100)] 
Fix a few minor typos in the SLH-DSA documentation.

4 months agoci: Replace $CI_REGISTRY with explicit reference to to git.lysator.liu.se. ci-delete-tags-amd64
Niels Möller [Sat, 17 Jan 2026 08:48:09 +0000 (09:48 +0100)] 
ci: Replace $CI_REGISTRY with explicit reference to to git.lysator.liu.se.

4 months agoci: Delete all tags in ci jobs.
Niels Möller [Fri, 16 Jan 2026 20:14:52 +0000 (21:14 +0100)] 
ci: Delete all tags in ci jobs.

4 months agoUpdate OCB documentation.
Niels Möller [Wed, 14 Jan 2026 16:06:52 +0000 (17:06 +0100)] 
Update OCB documentation.

4 months agoAdd tag_length to ocb_ctx, and drop length argument to ocb_digest.
Niels Möller [Wed, 14 Jan 2026 15:30:55 +0000 (16:30 +0100)] 
Add tag_length to ocb_ctx, and drop length argument to ocb_digest.

4 months agoUpdate CCM documentation.
Niels Möller [Wed, 14 Jan 2026 11:21:13 +0000 (12:21 +0100)] 
Update CCM documentation.

4 months agoAdd tag_length to ccm_ctx, and drop length argument to ccm_digest.
Niels Möller [Wed, 14 Jan 2026 10:50:34 +0000 (11:50 +0100)] 
Add tag_length to ccm_ctx, and drop length argument to ccm_digest.

4 months agoNEWS update for OCB.
Niels Möller [Wed, 14 Jan 2026 10:23:16 +0000 (11:23 +0100)] 
NEWS update for OCB.

4 months agoSimplify ocb_fill_n.
Niels Möller [Thu, 8 Jan 2026 20:35:12 +0000 (21:35 +0100)] 
Simplify ocb_fill_n.

4 months agoUse platform-independent types for ocb data_coutn and message_count.
Niels Möller [Thu, 8 Jan 2026 19:56:07 +0000 (20:56 +0100)] 
Use platform-independent types for ocb data_coutn and message_count.

5 months agoMinor NEWS update.
Niels Möller [Sun, 4 Jan 2026 10:06:02 +0000 (11:06 +0100)] 
Minor NEWS update.

5 months agoRearrange getopt files to use gnulib copies. use-gnulib-getopt
Niels Möller [Tue, 2 Dec 2025 16:41:42 +0000 (17:41 +0100)] 
Rearrange getopt files to use gnulib copies.

5 months agoChangeLog and NEWS update for sexp parser fixes.
Niels Möller [Fri, 2 Jan 2026 15:48:55 +0000 (16:48 +0100)] 
ChangeLog and NEWS update for sexp parser fixes.

5 months agoRewrite sexp_iterator_exit_list to not recurse to sexp_iterator_next. fix-sexp_iterator_exit_list
Niels Möller [Sun, 28 Dec 2025 18:39:24 +0000 (19:39 +0100)] 
Rewrite sexp_iterator_exit_list to not recurse to sexp_iterator_next.

5 months agoFix off-by-one length check error in sexp parser.
Niels Möller [Wed, 17 Dec 2025 13:08:49 +0000 (14:08 +0100)] 
Fix off-by-one length check error in sexp parser.

5 months agoFix return value for failure of base16_decode_update and base64_decode_update.
Niels Möller [Mon, 15 Dec 2025 19:40:36 +0000 (20:40 +0100)] 
Fix return value for failure of base16_decode_update and base64_decode_update.

6 months agoFix typos reported by Amos Jeffries.
Niels Möller [Fri, 14 Nov 2025 16:20:47 +0000 (17:20 +0100)] 
Fix typos reported by Amos Jeffries.

6 months agoDocument changes to base16_decode_update and base64_decode_update.
Niels Möller [Sat, 8 Nov 2025 14:59:31 +0000 (15:59 +0100)] 
Document changes to base16_decode_update and base64_decode_update.

7 months agotests: Simplify read_hex_file. base16-base64-decode-api
Niels Möller [Wed, 5 Nov 2025 15:06:49 +0000 (16:06 +0100)] 
tests: Simplify read_hex_file.

7 months agoUpdate api for base16_decode_update and base16_decode_update.
Niels Möller [Wed, 29 Oct 2025 20:12:15 +0000 (21:12 +0100)] 
Update api for base16_decode_update and base16_decode_update.

Make *dst_length an input argument, should hold size of dst buffer.
Fail if decoding would exceed this size.

7 months agoWhitespace fixes to NEWS.
Niels Möller [Thu, 30 Oct 2025 09:02:31 +0000 (10:02 +0100)] 
Whitespace fixes to NEWS.

7 months agoDelete undocumented and unused function base64_encode_group.
Niels Möller [Wed, 29 Oct 2025 20:23:15 +0000 (21:23 +0100)] 
Delete undocumented and unused function base64_encode_group.

7 months agoUpdate NEWS for nettle_armor deletion.
Niels Möller [Fri, 17 Oct 2025 19:06:13 +0000 (21:06 +0200)] 
Update NEWS for nettle_armor deletion.

7 months agoDelete nettle_armor abstraction. delete-nettle_armor
Niels Möller [Thu, 16 Oct 2025 06:02:13 +0000 (08:02 +0200)] 
Delete nettle_armor abstraction.

7 months agoSimplify test scripts.
Niels Möller [Mon, 13 Oct 2025 19:34:36 +0000 (21:34 +0200)] 
Simplify test scripts.

7 months agosexp-conv: Delete use of nettle_armor for input.
Niels Möller [Mon, 13 Oct 2025 19:29:37 +0000 (21:29 +0200)] 
sexp-conv: Delete use of nettle_armor for input.

7 months agosexp-conv: Delete use of nettle_armor for output.
Niels Möller [Mon, 13 Oct 2025 17:53:49 +0000 (19:53 +0200)] 
sexp-conv: Delete use of nettle_armor for output.

7 months agoImprovements to sexp-conv --hash option.
Niels Möller [Wed, 8 Oct 2025 08:08:53 +0000 (10:08 +0200)] 
Improvements to sexp-conv --hash option.

8 months agoRework handling of sexp-conv hashing, fix leak.
Niels Möller [Fri, 3 Oct 2025 20:04:20 +0000 (22:04 +0200)] 
Rework handling of sexp-conv hashing, fix leak.

8 months agoChangeLog entry for previous change.
Niels Möller [Thu, 2 Oct 2025 17:25:55 +0000 (19:25 +0200)] 
ChangeLog entry for previous change.

8 months agoImprove tests of sexp-conv.
Niels Möller [Thu, 2 Oct 2025 17:13:06 +0000 (19:13 +0200)] 
Improve tests of sexp-conv.

8 months agoList SLH-DSA as a new feature in NEWS.
Niels Möller [Sat, 27 Sep 2025 14:55:04 +0000 (16:55 +0200)] 
List SLH-DSA as a new feature in NEWS.

8 months agodoc: Document SLH-DSA functions.
Niels Möller [Sat, 27 Sep 2025 11:27:16 +0000 (13:27 +0200)] 
doc: Document SLH-DSA functions.

8 months agodoc: Update introduction to public-key algorithms.
Niels Möller [Wed, 20 Aug 2025 15:30:20 +0000 (17:30 +0200)] 
doc: Update introduction to public-key algorithms.

8 months agoUpdate mini-gmp to latest version, disable floating point functions.
Niels Möller [Wed, 24 Sep 2025 15:04:44 +0000 (17:04 +0200)] 
Update mini-gmp to latest version, disable floating point functions.

8 months agodoc: Group introductory material into a "Using Nettle" chapter.
Niels Möller [Thu, 18 Sep 2025 19:25:35 +0000 (21:25 +0200)] 
doc: Group introductory material into a "Using Nettle" chapter.

8 months agoUpdate NEWS with configure and C language changes.
Niels Möller [Thu, 18 Sep 2025 18:47:09 +0000 (20:47 +0200)] 
Update NEWS with configure and C language changes.

Also move interface changes earlier.

8 months agoDelete configure logic to tweak the default libdir.
Niels Möller [Thu, 18 Sep 2025 18:04:28 +0000 (20:04 +0200)] 
Delete configure logic to tweak the default libdir.

8 months agoDelete configure options --with-lib-path and --with-include-path.
Niels Möller [Thu, 18 Sep 2025 17:57:39 +0000 (19:57 +0200)] 
Delete configure options --with-lib-path and --with-include-path.

8 months agoMerge branch 'slh-dsa-sha2' into master
Niels Möller [Tue, 16 Sep 2025 19:00:04 +0000 (21:00 +0200)] 
Merge branch 'slh-dsa-sha2' into master

8 months agoImplement slh-dsa-sha2-128f. slh-dsa-sha2
Niels Möller [Mon, 15 Sep 2025 16:32:39 +0000 (18:32 +0200)] 
Implement slh-dsa-sha2-128f.

8 months agoAdd ChangeLog entries for slh-dsa-sha2-128s.
Niels Möller [Sun, 14 Sep 2025 20:00:54 +0000 (22:00 +0200)] 
Add ChangeLog entries for slh-dsa-sha2-128s.

8 months agoAdd back accidentally lost slh_dsa_shake_128f test case.
Niels Möller [Sun, 14 Sep 2025 19:56:33 +0000 (21:56 +0200)] 
Add back accidentally lost slh_dsa_shake_128f test case.

8 months agoImplement slh-dsa-sha2-128s.
Niels Möller [Sun, 14 Sep 2025 16:53:28 +0000 (18:53 +0200)] 
Implement slh-dsa-sha2-128s.

8 months agoci: Re-enable remote/s390x job. reenable-remote-s390
Niels Möller [Sat, 13 Sep 2025 08:50:12 +0000 (10:50 +0200)] 
ci: Re-enable remote/s390x job.

8 months agoNew hash abstraction for slh-dsa, to aid sha2 support.
Niels Möller [Fri, 12 Sep 2025 19:42:19 +0000 (21:42 +0200)] 
New hash abstraction for slh-dsa, to aid sha2 support.

8 months agoci: Replace c89 job with c99.
Niels Möller [Tue, 9 Sep 2025 19:42:21 +0000 (21:42 +0200)] 
ci: Replace c89 job with c99.

8 months agoNew files slh-dsa-128s.c and slh-dsa-128f.c.
Niels Möller [Tue, 9 Sep 2025 18:29:52 +0000 (20:29 +0200)] 
New files slh-dsa-128s.c and slh-dsa-128f.c.

Move params structs and parse_digest functions, since they are the
same for shake and sha2.

8 months agoRename _slh_dsa_shake_128s_params -> _slh_dsa_128s_params, and similarly for 128f.
Niels Möller [Mon, 8 Sep 2025 18:38:32 +0000 (20:38 +0200)] 
Rename _slh_dsa_shake_128s_params -> _slh_dsa_128s_params, and similarly for 128f.

9 months agoRename slh-dsa constants that are not shake-specific.
Niels Möller [Fri, 5 Sep 2025 15:23:02 +0000 (17:23 +0200)] 
Rename slh-dsa constants that are not shake-specific.

9 months agoci: Temporarily disable gnutls job.
Niels Möller [Fri, 5 Sep 2025 14:30:19 +0000 (16:30 +0200)] 
ci: Temporarily disable gnutls job.

9 months agoRevert "Add COPYING symlink, to help gitlab and go-license-detector."
Niels Möller [Fri, 5 Sep 2025 14:25:42 +0000 (16:25 +0200)] 
Revert "Add COPYING symlink, to help gitlab and go-license-detector."

This reverts commit e7eacd6bdc79868f239c3ee5e665b08c8ec280a5.

The symlink didn't help, and it is somewhat misleading.

9 months agoci: Update for running CI at git.lysator.liu.se, not gitlab.com.
Niels Möller [Fri, 5 Sep 2025 13:16:45 +0000 (15:16 +0200)] 
ci: Update for running CI at git.lysator.liu.se, not gitlab.com.

There's currently one configured runner, hosted by Simon Josefsson.

9 months agoIn the manual, update version, year, and sha example.
Niels Möller [Fri, 15 Aug 2025 18:49:09 +0000 (20:49 +0200)] 
In the manual, update version, year, and sha example.

9 months agoFix broken mailing list link in README.
Niels Möller [Thu, 14 Aug 2025 13:47:01 +0000 (15:47 +0200)] 
Fix broken mailing list link in README.

10 months agoAdd COPYING symlink, to help gitlab and go-license-detector.
Niels Möller [Fri, 18 Jul 2025 15:32:29 +0000 (17:32 +0200)] 
Add COPYING symlink, to help gitlab and go-license-detector.

10 months agoSimilar fix to 32-bit ecc_secp384r1_modp.
Niels Möller [Mon, 7 Jul 2025 19:27:40 +0000 (21:27 +0200)] 
Similar fix to 32-bit ecc_secp384r1_modp.

11 months agoFix 32-bit ecc_secp192r1_modp to work with the sc-* tests.
Niels Möller [Sun, 6 Jul 2025 21:09:56 +0000 (23:09 +0200)] 
Fix 32-bit ecc_secp192r1_modp to work with the sc-* tests.

11 months agoAdditional slh-dsa test cases.
Niels Möller [Thu, 3 Jul 2025 20:22:42 +0000 (22:22 +0200)] 
Additional slh-dsa test cases.

11 months agoAdditional slh-dsa keygen test cases.
Niels Möller [Thu, 3 Jul 2025 16:35:43 +0000 (18:35 +0200)] 
Additional slh-dsa keygen test cases.

From https://github.com/usnistgov/ACVP-Server.

11 months agoImplement slh-dsa-shake-128f.
Niels Möller [Mon, 30 Jun 2025 07:05:35 +0000 (09:05 +0200)] 
Implement slh-dsa-shake-128f.

11 months agoFix memory leaks in slh-dsa tests.
Niels Möller [Mon, 30 Jun 2025 07:21:06 +0000 (09:21 +0200)] 
Fix memory leaks in slh-dsa tests.

11 months agoImplement slh-dsa-shake128s.
Niels Möller [Mon, 30 Jun 2025 06:31:23 +0000 (08:31 +0200)] 
Implement slh-dsa-shake128s.