]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
6 weeks agoSimplify _nettle_hmac_set_key, without memxor_byte4. refactor-hmac
Niels Möller [Sun, 22 Jun 2025 18:58:28 +0000 (20:58 +0200)] 
Simplify _nettle_hmac_set_key, without memxor_byte4.

6 weeks agoConsistently use 2025 as copyright year for hmac refactoring.
Niels Möller [Sun, 22 Jun 2025 18:54:10 +0000 (20:54 +0200)] 
Consistently use 2025 as copyright year for hmac refactoring.

6 weeks agoUpdate hmac_gosthash94_digest.
Niels Möller [Sun, 22 Jun 2025 18:48:37 +0000 (20:48 +0200)] 
Update hmac_gosthash94_digest.

6 weeks agoAdd ChangeLog note on hmac_ctx reductions.
Niels Möller [Sun, 22 Jun 2025 15:31:27 +0000 (17:31 +0200)] 
Add ChangeLog note on hmac_ctx reductions.

6 weeks agoUse alignas for hmac inner and outer state.
Niels Möller [Sun, 22 Jun 2025 15:22:00 +0000 (17:22 +0200)] 
Use alignas for hmac inner and outer state.

6 weeks agoAdd hmac-internal.h to DISTFILES.
Niels Möller [Tue, 27 May 2025 18:52:11 +0000 (20:52 +0200)] 
Add hmac-internal.h to DISTFILES.

6 weeks agoDelete documentation of old hmac functions and macros.
Niels Möller [Mon, 26 May 2025 18:16:00 +0000 (20:16 +0200)] 
Delete documentation of old hmac functions and macros.

6 weeks agoDelete old hmac_set_key, hmac_update, hmac_digest.
Niels Möller [Mon, 26 May 2025 17:22:29 +0000 (19:22 +0200)] 
Delete old hmac_set_key, hmac_update, hmac_digest.

6 weeks agoTweak HMAC_CTX macro.
Niels Möller [Wed, 30 Oct 2024 13:20:30 +0000 (14:20 +0100)] 
Tweak HMAC_CTX macro.

6 weeks agoUpdate hmac-gosthash94 and hmac-gosthash94cp.
Niels Möller [Wed, 30 Oct 2024 13:15:22 +0000 (14:15 +0100)] 
Update hmac-gosthash94 and hmac-gosthash94cp.

6 weeks agoUpdate hmac-streebog512 and hmac-streebog256.
Niels Möller [Wed, 30 Oct 2024 13:07:30 +0000 (14:07 +0100)] 
Update hmac-streebog512 and hmac-streebog256.

6 weeks agoUpdate hmac-sm3.
Niels Möller [Wed, 30 Oct 2024 10:25:24 +0000 (11:25 +0100)] 
Update hmac-sm3.

6 weeks agoMinor fixes
Niels Möller [Wed, 30 Oct 2024 10:11:47 +0000 (11:11 +0100)] 
Minor fixes

6 weeks agoUpdate hmac-sha512 and hmac-sha384.
Niels Möller [Wed, 30 Oct 2024 09:53:35 +0000 (10:53 +0100)] 
Update hmac-sha512 and hmac-sha384.

6 weeks agoUpdate hmac-sha1.
Niels Möller [Wed, 30 Oct 2024 09:40:26 +0000 (10:40 +0100)] 
Update hmac-sha1.

6 weeks agoUpdate hmac-ripemd160.
Niels Möller [Wed, 30 Oct 2024 09:24:19 +0000 (10:24 +0100)] 
Update hmac-ripemd160.

6 weeks agoRevert changes to sha256.c
Niels Möller [Wed, 30 Oct 2024 09:20:34 +0000 (10:20 +0100)] 
Revert changes to sha256.c

6 weeks agoUpdate hmac-sha224.
Niels Möller [Wed, 30 Oct 2024 09:18:42 +0000 (10:18 +0100)] 
Update hmac-sha224.

6 weeks agoUpdate hmac-md5
Niels Möller [Wed, 30 Oct 2024 09:15:31 +0000 (10:15 +0100)] 
Update hmac-md5

6 weeks agoInclude count in the copied state
Niels Möller [Wed, 30 Oct 2024 09:06:04 +0000 (10:06 +0100)] 
Include count in the copied state

6 weeks agoNew macro _NETTLE_HMAC_DIGEST
Niels Möller [Wed, 30 Oct 2024 08:43:52 +0000 (09:43 +0100)] 
New macro _NETTLE_HMAC_DIGEST

6 weeks agoNew internal function _nettle_hmac_set_key.
Niels Möller [Tue, 29 Oct 2024 19:48:19 +0000 (20:48 +0100)] 
New internal function _nettle_hmac_set_key.

6 weeks agoExtract some utility functions for hmac key setup.
Niels Möller [Mon, 21 Oct 2024 19:18:05 +0000 (21:18 +0200)] 
Extract some utility functions for hmac key setup.

6 weeks agoRework hmac-sha256.
Niels Möller [Mon, 21 Oct 2024 18:11:21 +0000 (20:11 +0200)] 
Rework hmac-sha256.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10 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

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

10 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>
11 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>
12 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>
13 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.

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

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

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

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

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

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

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

13 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

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

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

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

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

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

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

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

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

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

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