]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
2 days agoAdditional slh-dsa test cases. master
Niels Möller [Thu, 3 Jul 2025 20:22:42 +0000 (22:22 +0200)] 
Additional slh-dsa test cases.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

6 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).

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

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

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

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

9 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

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

9 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>
10 months agopowerpc64/sha256: adjust stack offset for storing non-volatile registers
Eric Richter [Thu, 29 Aug 2024 14:44:25 +0000 (09:44 -0500)] 
powerpc64/sha256: adjust stack offset for storing non-volatile registers

According to the ABI, the stack pointer is quadword aligned, so starting
the stack storage at offset -8, may cause the return address to be
stepped on. Adjusting to use -16 as the starting point, which also
matches other POWER assembly code.

Signed-off-by: Eric Richter <erichte@linux.ibm.com>
11 months agopowerpc64: remove use of m4_unquote in the load step for sha256
Eric Richter [Thu, 20 Jun 2024 18:43:57 +0000 (13:43 -0500)] 
powerpc64: remove use of m4_unquote in the load step for sha256

By passing in the constant offset value into the LOAD macro, the use of
m4_unquote to calculate the correct constant GPR can be avoided,
improving readability.

Signed-off-by: Eric Richter <erichte@linux.ibm.com>
12 months agoNew test_xof function, use for tests of shake128 and shake256.
Niels Möller [Sun, 23 Jun 2024 19:58:49 +0000 (21:58 +0200)] 
New test_xof function, use for tests of shake128 and shake256.

12 months agoImprove hmac tests, delete HMAC_TEST macro. cleanup-hmac-tests
Niels Möller [Sun, 16 Jun 2024 20:12:24 +0000 (22:12 +0200)] 
Improve hmac tests, delete HMAC_TEST macro.

12 months agoAdd nettle_mac structs for gosthash94 and gosthash94cp.
Niels Möller [Sun, 16 Jun 2024 19:00:51 +0000 (21:00 +0200)] 
Add nettle_mac structs for gosthash94 and gosthash94cp.

12 months agoAdd ChangeLog entry for nettle-3.10 release.
Niels Möller [Sun, 16 Jun 2024 19:01:46 +0000 (21:01 +0200)] 
Add ChangeLog entry for nettle-3.10 release.

12 months agoFixes for running tests in wine. nettle_3.10_release_20240616
Niels Möller [Sun, 16 Jun 2024 10:51:17 +0000 (12:51 +0200)] 
Fixes for running tests in wine.

12 months agoFix distribution of side channel tests. nettle_3.10rc2
Niels Möller [Sat, 15 Jun 2024 12:32:02 +0000 (14:32 +0200)] 
Fix distribution of side channel tests.

12 months agoUpdate NEWS nettle_3.10rc1
Niels Möller [Wed, 12 Jun 2024 11:31:19 +0000 (13:31 +0200)] 
Update NEWS

12 months agoChangeLog entry for previous change.
Niels Möller [Tue, 11 Jun 2024 18:56:04 +0000 (20:56 +0200)] 
ChangeLog entry for previous change.

12 months agoarm64: CPU feature detection for Android
Foolbar [Sun, 9 Jun 2024 16:44:18 +0000 (00:44 +0800)] 
arm64: CPU feature detection for Android

getauxval() is available on Android since API 18.
https://developer.android.com/ndk/guides/cpu-features#features_using_libcs_getauxval3

12 months agoMinor comment fix.
Niels Möller [Tue, 11 Jun 2024 17:55:59 +0000 (19:55 +0200)] 
Minor comment fix.

12 months agoChangeLog and AUTHORS update for ppc64 sha256.
Niels Möller [Tue, 11 Jun 2024 17:51:46 +0000 (19:51 +0200)] 
ChangeLog and AUTHORS update for ppc64 sha256.

12 months agopowerpc64: Add optimized assembly for sha256-compress-n ppc64-sha256
Eric Richter [Tue, 4 Jun 2024 20:55:26 +0000 (15:55 -0500)] 
powerpc64: Add optimized assembly for sha256-compress-n

This patch introduces an optimized powerpc64 assembly implementation for
sha256-compress-n. This takes advantage of the vshasigma instruction, as
well as unrolling loops to best take advantage of running instructions
in parallel.

The following data was captured on a POWER 10 LPAR @ ~3.896GHz

Current C implementation:
         Algorithm         mode Mbyte/s
            sha256       update  280.97
       hmac-sha256     64 bytes   80.81
       hmac-sha256    256 bytes  170.50
       hmac-sha256   1024 bytes  241.92
       hmac-sha256   4096 bytes  268.54
       hmac-sha256   single msg  276.16

With optimized assembly:
         Algorithm         mode Mbyte/s
            sha256       update  461.45
       hmac-sha256     64 bytes  123.88
       hmac-sha256    256 bytes  268.81
       hmac-sha256   1024 bytes  390.91
       hmac-sha256   4096 bytes  438.02
       hmac-sha256   single msg  453.83

Signed-off-by: Eric Richter <erichte@linux.ibm.com>
12 months agoAvoid warnings for assert_maybe.
Niels Möller [Sun, 9 Jun 2024 09:48:37 +0000 (11:48 +0200)] 
Avoid warnings for assert_maybe.

13 months agoUpdate config.guess and config.sub to 2024-01-01 versions.
Niels Möller [Wed, 5 Jun 2024 20:10:00 +0000 (22:10 +0200)] 
Update config.guess and config.sub to 2024-01-01 versions.

13 months agoUpdate version numbers for nettle-3.10.
Niels Möller [Sun, 2 Jun 2024 12:06:48 +0000 (14:06 +0200)] 
Update version numbers for nettle-3.10.

13 months agoUnify handing of message hash for dsa and ecdsa, using mpn interface.
Niels Möller [Sat, 1 Jun 2024 16:26:56 +0000 (18:26 +0200)] 
Unify handing of message hash for dsa and ecdsa, using mpn interface.

13 months agoUse NETTLE_OCTET_SIZE_TO_LIMB_SIZE macro.
Niels Möller [Sat, 1 Jun 2024 16:21:57 +0000 (18:21 +0200)] 
Use NETTLE_OCTET_SIZE_TO_LIMB_SIZE macro.

13 months agoci: Update .gitlab-ci.yml job tags.
Niels Möller [Mon, 20 May 2024 18:32:00 +0000 (20:32 +0200)] 
ci: Update .gitlab-ci.yml job tags.

See
https://docs.gitlab.com/ee/update/deprecations.html#removal-of-tags-from-small-saas-runners-on-linux,
and corresponding gnutls update
https://gitlab.com/gnutls/gnutls/-/commit/642c39ba9ae53ce427344d884eb3808f042b90e4.

13 months agoppc64: Reduce register usage in gcm-aes assembly.
Niels Möller [Wed, 15 May 2024 09:06:11 +0000 (11:06 +0200)] 
ppc64: Reduce register usage in gcm-aes assembly.

13 months agoMore NEWS entries for nettle-3.10.
Niels Möller [Wed, 15 May 2024 08:06:08 +0000 (10:06 +0200)] 
More NEWS entries for nettle-3.10.

13 months agoSpelling fix.
Niels Möller [Wed, 15 May 2024 07:53:09 +0000 (09:53 +0200)] 
Spelling fix.

14 months agoUpdate of AUTHORS file.
Niels Möller [Sat, 20 Apr 2024 08:18:10 +0000 (10:18 +0200)] 
Update of AUTHORS file.

14 months agoMerge branch 'ppc64-gcm-aes-rebased'
Niels Möller [Sat, 20 Apr 2024 08:03:22 +0000 (10:03 +0200)] 
Merge branch 'ppc64-gcm-aes-rebased'

14 months agoChangeLog entries for ppc64 gcm-aes. ppc64-gcm-aes-rebased
Niels Möller [Sun, 14 Apr 2024 08:33:52 +0000 (10:33 +0200)] 
ChangeLog entries for ppc64 gcm-aes.

14 months agoUpdate copyright headers.
Niels Möller [Sun, 14 Apr 2024 08:18:21 +0000 (10:18 +0200)] 
Update copyright headers.

14 months agoFix filenames in two ecc-curve25519-modp.asm files.
Niels Möller [Sun, 14 Apr 2024 08:12:46 +0000 (10:12 +0200)] 
Fix filenames in two ecc-curve25519-modp.asm files.