]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
3 days 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 days 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 days agodoc: Document SLH-DSA functions.
Niels Möller [Sat, 27 Sep 2025 11:27:16 +0000 (13:27 +0200)] 
doc: Document SLH-DSA functions.

11 days 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.

11 days 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.

2 weeks 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.

2 weeks 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.

2 weeks 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.

2 weeks 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.

2 weeks 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

2 weeks 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.

3 weeks 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.

3 weeks 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.

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

3 weeks 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.

3 weeks 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.

3 weeks 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.

3 weeks 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.

3 weeks 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.

4 weeks 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.

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

4 weeks 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.

4 weeks 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.

7 weeks 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.

7 weeks 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.

2 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.

2 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.

2 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.

3 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.

3 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.

3 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.

3 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.

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

3 months agoNew testutils function open_srcdir_file.
Niels Möller [Fri, 27 Jun 2025 18:54:27 +0000 (20:54 +0200)] 
New testutils function open_srcdir_file.

3 months agoUpdate LGPLv3 text to latest version
Niels Möller [Fri, 27 Jun 2025 18:13:12 +0000 (20:13 +0200)] 
Update LGPLv3 text to latest version

Copied from
https://cgit.git.savannah.gnu.org/cgit/gnulib.git/plain/doc/COPYING.LESSERv3,
only change is http -> https, and some whitespace cleanup.

3 months agoCopy NEWS entries for Nettle-3.10.2.
Niels Möller [Thu, 26 Jun 2025 19:53:14 +0000 (21:53 +0200)] 
Copy NEWS entries for Nettle-3.10.2.

3 months agoUpdate config.guess and config.sub.
Niels Möller [Thu, 26 Jun 2025 18:20:20 +0000 (20:20 +0200)] 
Update config.guess and config.sub.

(cherry picked from commit 9676f65bcd14ddaff4e7b14c89d3503300d0dc47)

3 months agoFix non-prototype declarations in getopt files.
Niels Möller [Tue, 24 Jun 2025 18:41:41 +0000 (20:41 +0200)] 
Fix non-prototype declarations in getopt files.

(cherry picked from commit 6d2d88588037edaf0f7795d90887f47b254c08d0)

3 months agoUpdate sha-example.c.
Niels Möller [Tue, 24 Jun 2025 16:40:12 +0000 (18:40 +0200)] 
Update sha-example.c.

3 months agoUpdate call to sha256_digest in example.
Niels Möller [Tue, 24 Jun 2025 16:32:58 +0000 (18:32 +0200)] 
Update call to sha256_digest in example.

3 months agoNEWS entries for Nettle-4.0.
Niels Möller [Tue, 24 Jun 2025 16:32:02 +0000 (18:32 +0200)] 
NEWS entries for Nettle-4.0.

3 months agoSimplify bcrypt salt logic, eliminating a compiler warning.
Niels Möller [Mon, 23 Jun 2025 17:53:01 +0000 (19:53 +0200)] 
Simplify bcrypt salt logic, eliminating a compiler warning.

3 months agoUpdate of powerpc64/README.
Niels Möller [Mon, 23 Jun 2025 15:11:36 +0000 (17:11 +0200)] 
Update of powerpc64/README.

3 months agoDelete documentation of old hmac functions and macros.
Niels Möller [Sun, 22 Jun 2025 19:53:06 +0000 (21:53 +0200)] 
Delete documentation of old hmac functions and macros.

3 months agoDelete the old "generic" HMAC API.
Niels Möller [Sun, 22 Jun 2025 19:50:27 +0000 (21:50 +0200)] 
Delete the old "generic" HMAC API.

3 months agoRefactor HMAC, reducing context sizes.
Niels Möller [Sun, 22 Jun 2025 19:44:13 +0000 (21:44 +0200)] 
Refactor HMAC, reducing context sizes.

3 months agoLess conditions around ctr_fill16.
Niels Möller [Mon, 2 Jun 2025 17:29:14 +0000 (19:29 +0200)] 
Less conditions around ctr_fill16.

3 months agoImprove failure messages for test_mac.
Niels Möller [Sun, 22 Jun 2025 19:07:55 +0000 (21:07 +0200)] 
Improve failure messages for test_mac.

3 months agoTrim memset calls in gosthash94_init and md2_init.
Niels Möller [Sun, 22 Jun 2025 19:05:51 +0000 (21:05 +0200)] 
Trim memset calls in gosthash94_init and md2_init.

3 months agoNew macro _NETTLE_ALIGN16, for 16-byte alignment.
Niels Möller [Sun, 22 Jun 2025 15:09:41 +0000 (17:09 +0200)] 
New macro _NETTLE_ALIGN16, for 16-byte alignment.

Depends on stdalign.h. Used for nettle_block16, and for aes and umac
key arrays.

4 months agoRun submake in testsuite before tools.
Niels Möller [Mon, 26 May 2025 18:48:14 +0000 (20:48 +0200)] 
Run submake in testsuite before tools.

4 months agoUpdate sha3 documentation. trim-sha3-context
Niels Möller [Sun, 18 May 2025 09:04:50 +0000 (11:04 +0200)] 
Update sha3 documentation.

4 months agoDefine old sha3_*_ctx and sha3_*_init as aliases.
Niels Möller [Tue, 13 May 2025 18:35:35 +0000 (20:35 +0200)] 
Define old sha3_*_ctx and sha3_*_init as aliases.

4 months agoNew smaller struct sha3_ctx.
Niels Möller [Tue, 13 May 2025 18:13:01 +0000 (20:13 +0200)] 
New smaller struct sha3_ctx.

5 months agoWhitespace changes to sha3 prototypes.
Niels Möller [Tue, 29 Apr 2025 17:48:05 +0000 (19:48 +0200)] 
Whitespace changes to sha3 prototypes.

5 months agoAdopt mp_bitcnt_t type.
Niels Möller [Mon, 28 Apr 2025 18:23:52 +0000 (20:23 +0200)] 
Adopt mp_bitcnt_t type.

5 months agoDelete old and deprecated file sha.h.
Niels Möller [Mon, 28 Apr 2025 18:11:51 +0000 (20:11 +0200)] 
Delete old and deprecated file sha.h.

5 months agoDelete old _DATA_SIZE aliases.
Niels Möller [Mon, 28 Apr 2025 18:07:21 +0000 (20:07 +0200)] 
Delete old _DATA_SIZE aliases.

5 months agoDelete old alias yarrow256_force_reseed.
Niels Möller [Mon, 28 Apr 2025 18:06:48 +0000 (20:06 +0200)] 
Delete old alias yarrow256_force_reseed.

5 months agoDrop md5-compat-test from .gitignore.
Niels Möller [Mon, 28 Apr 2025 18:04:19 +0000 (20:04 +0200)] 
Drop md5-compat-test from .gitignore.

5 months agoDelete old salsa20 compatibility aliases.
Niels Möller [Mon, 28 Apr 2025 18:03:32 +0000 (20:03 +0200)] 
Delete old salsa20 compatibility aliases.

5 months agoppc64: Use 64-bit compare in _sha256_compress_n.
Niels Möller [Sun, 27 Apr 2025 18:36:38 +0000 (20:36 +0200)] 
ppc64: Use 64-bit compare in _sha256_compress_n.

5 months agoMinor fixes to ccm documentation.
Niels Möller [Fri, 25 Apr 2025 18:58:57 +0000 (20:58 +0200)] 
Minor fixes to ccm documentation.

5 months agoci: Use CFLAGS to pass -mvsx flag, rather than EXTRA_CONFIGURE_ARGS and CC.
Niels Möller [Wed, 9 Apr 2025 08:29:38 +0000 (10:29 +0200)] 
ci: Use CFLAGS to pass -mvsx flag, rather than EXTRA_CONFIGURE_ARGS and CC.

5 months agoTest cipher encrypt/decrypt methods with varying data alignment.
Niels Möller [Wed, 9 Apr 2025 07:53:16 +0000 (09:53 +0200)] 
Test cipher encrypt/decrypt methods with varying data alignment.

5 months agoMicro-optimization of twofish.
Niels Möller [Tue, 8 Apr 2025 19:27:02 +0000 (21:27 +0200)] 
Micro-optimization of twofish.

6 months agoSet CC including -mvsx flag, for big-endian powerpc64 build.
Niels Möller [Thu, 3 Apr 2025 20:11:54 +0000 (22:11 +0200)] 
Set CC including -mvsx flag, for big-endian powerpc64 build.

6 months agoppc64: Use assembly files only if __VSX__ is defined.
Niels Möller [Wed, 2 Apr 2025 14:39:03 +0000 (16:39 +0200)] 
ppc64: Use assembly files only if __VSX__ is defined.

6 months agoChangeLog entries for check-fat-emulate. check-fat-emulate
Niels Möller [Wed, 2 Apr 2025 14:16:21 +0000 (16:16 +0200)] 
ChangeLog entries for check-fat-emulate.

6 months agoAdd make target check-fat-emulate
Niels Möller [Wed, 2 Apr 2025 13:04:48 +0000 (15:04 +0200)] 
Add make target check-fat-emulate

6 months agoppc64: Comment fix and micro optimization of ghash_set_key.
Niels Möller [Sat, 29 Mar 2025 15:20:32 +0000 (16:20 +0100)] 
ppc64: Comment fix and micro optimization of ghash_set_key.

6 months agoppc64: Update offset in gcm-aes assembly.
Niels Möller [Wed, 26 Mar 2025 16:45:23 +0000 (17:45 +0100)] 
ppc64: Update offset in gcm-aes assembly.

6 months agoHalve allocation size for precomputed values in gcm_key.
Niels Möller [Mon, 24 Mar 2025 20:27:09 +0000 (21:27 +0100)] 
Halve allocation size for precomputed values in gcm_key.

6 months agoDocument deleted digest size arguments.
Niels Möller [Tue, 18 Mar 2025 19:11:59 +0000 (20:11 +0100)] 
Document deleted digest size arguments.

6 months agoDrop length argument from sm3_write_digest. delete-digest_func-size
Niels Möller [Tue, 11 Mar 2025 19:37:27 +0000 (20:37 +0100)] 
Drop length argument from sm3_write_digest.

6 months agoAdd typedef nettle_output_func.
Niels Möller [Tue, 11 Mar 2025 19:35:28 +0000 (20:35 +0100)] 
Add typedef nettle_output_func.

6 months agoDelete length argument to nettle_hash_digest_func.
Niels Möller [Sat, 24 Aug 2024 18:03:31 +0000 (20:03 +0200)] 
Delete length argument to nettle_hash_digest_func.

6 months agoDelete all code and docs for dsa-compat.h.
Niels Möller [Mon, 10 Mar 2025 20:53:27 +0000 (21:53 +0100)] 
Delete all code and docs for dsa-compat.h.

6 months agoChange type of the context argument for ccm_aes*_message.
Niels Möller [Sun, 9 Mar 2025 08:06:24 +0000 (09:06 +0100)] 
Change type of the context argument for ccm_aes*_message.

Used to be a
  struct ccm_aes{128,192,256}_ctx *
most of which was unused. Changed to instead take just a
  const struct aes{128,192,256}_ctx *

7 months agoDelete deprecated unsigned long member of union nettle_block16.
Niels Möller [Thu, 6 Mar 2025 19:15:25 +0000 (20:15 +0100)] 
Delete deprecated unsigned long member of union nettle_block16.

7 months agoDelete obsolete and deprecated _rsa_blind and _rsa_unblind functions.
Niels Möller [Thu, 6 Mar 2025 19:11:37 +0000 (20:11 +0100)] 
Delete obsolete and deprecated _rsa_blind and _rsa_unblind functions.

7 months agoDelete unneeded define of _NETTLE_ATTRIBUTE_DEPRECATED in aes and gcm tests.
Niels Möller [Thu, 6 Mar 2025 19:04:24 +0000 (20:04 +0100)] 
Delete unneeded define of _NETTLE_ATTRIBUTE_DEPRECATED in aes and gcm tests.

7 months agoMerge branch 'delete-old-aes'.
Niels Möller [Wed, 5 Mar 2025 15:33:05 +0000 (16:33 +0100)] 
Merge branch 'delete-old-aes'.

Delete old AES api using the same struct aes_ctx for all key sizes.

7 months agoDelete incomplete and obsolete openpgp code.
Niels Möller [Wed, 5 Mar 2025 09:07:24 +0000 (10:07 +0100)] 
Delete incomplete and obsolete openpgp code.

7 months agoDelete MD5 functions compatible with RFC 1321.
Niels Möller [Wed, 5 Mar 2025 08:58:16 +0000 (09:58 +0100)] 
Delete MD5 functions compatible with RFC 1321.

7 months agoBump version number for nettle-4.0, to prepare for breaking changes.
Niels Möller [Wed, 5 Mar 2025 08:45:06 +0000 (09:45 +0100)] 
Bump version number for nettle-4.0, to prepare for breaking changes.

7 months agoChangeLog entry for lxvb16x fix.
Niels Möller [Sun, 2 Mar 2025 08:02:50 +0000 (09:02 +0100)] 
ChangeLog entry for lxvb16x fix.

7 months agoAvoid using lxvb16x instruction in powerpc64/p8 files.
Niels Möller [Sat, 1 Mar 2025 14:15:34 +0000 (15:15 +0100)] 
Avoid using lxvb16x instruction in powerpc64/p8 files.

7 months agoAvoid using stxv/lxv instructions in powerpc64/p8 files.
Niels Möller [Sun, 9 Feb 2025 20:01:20 +0000 (21:01 +0100)] 
Avoid using stxv/lxv instructions in powerpc64/p8 files.

8 months agoFix copy-paste error in docs for ccm_aes256_decrypt_message.
Niels Möller [Sun, 12 Jan 2025 09:11:23 +0000 (10:11 +0100)] 
Fix copy-paste error in docs for ccm_aes256_decrypt_message.

9 months agoAdd ChangeLog entry for Nettle-3.10.1 relase. nettle_3.10.1_release_20241230
Niels Möller [Mon, 30 Dec 2024 16:00:08 +0000 (17:00 +0100)] 
Add ChangeLog entry for Nettle-3.10.1 relase.

9 months agoAdd UNUSED attribute for mark_bytes_undefined and mark_bytes_defined (testutils).
Niels Möller [Sat, 28 Dec 2024 17:00:40 +0000 (18:00 +0100)] 
Add UNUSED attribute for mark_bytes_undefined and mark_bytes_defined (testutils).

9 months agoNEWS entries for nettle-3.10.1.
Niels Möller [Wed, 16 Oct 2024 09:16:18 +0000 (11:16 +0200)] 
NEWS entries for nettle-3.10.1.

9 months agoUpdate version numbers for nettle-3.10.1.
Niels Möller [Sat, 14 Dec 2024 19:28:44 +0000 (20:28 +0100)] 
Update version numbers for nettle-3.10.1.

9 months agoFix problem with configure invocation of valgrind hanging if msan is enabled.
Niels Möller [Fri, 13 Dec 2024 14:19:44 +0000 (15:19 +0100)] 
Fix problem with configure invocation of valgrind hanging if msan is enabled.

11 months agoUpdate run-tests shell usage, fixing all shellcheck warnings.
Niels Möller [Wed, 16 Oct 2024 09:18:33 +0000 (11:18 +0200)] 
Update run-tests shell usage, fixing all shellcheck warnings.

12 months agoChangeLog entry for elf_aux_info fix
Niels Möller [Wed, 18 Sep 2024 08:20:29 +0000 (10:20 +0200)] 
ChangeLog entry for elf_aux_info fix

12 months agopowerpc64/sha256: fix loading overreads by loading less and shifting
Eric Richter [Wed, 11 Sep 2024 18:53:48 +0000 (13:53 -0500)] 
powerpc64/sha256: fix loading overreads by loading less and shifting

Originally, the 16 input words were loaded with 16 individual vector load
instructions. This has a side effect where the last three loads would
overread 1/2/3 extra words.

Fix the overread by replacing unnecessary overlapped reads with shifts.
As a consequence, the constant registers for 4,8,12 can be removed, and
also gain about 1~2% in performance.

Signed-off-by: Eric Richter <erichte@linux.ibm.com>
12 months agoSimplify fat logic for freebsd on ppc.
Niels Möller [Sun, 8 Sep 2024 16:41:59 +0000 (18:41 +0200)] 
Simplify fat logic for freebsd on ppc.

12 months agoAdd support for elf_aux_info() on OpenBSD
Brad Smith [Mon, 2 Sep 2024 02:52:53 +0000 (22:52 -0400)] 
Add support for elf_aux_info() on OpenBSD

Signed-off-by: Brad Smith <brad@comstyle.com>