]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
21 months agoSkip side-channel tests of rsa-sec-decrypt when built with mini-gmp. side-channel-tests
Niels Möller [Fri, 6 Oct 2023 14:09:40 +0000 (16:09 +0200)] 
Skip side-channel tests of rsa-sec-decrypt when built with mini-gmp.

21 months agoAdd configure test for valgrind.
Niels Möller [Fri, 6 Oct 2023 10:29:41 +0000 (12:29 +0200)] 
Add configure test for valgrind.

21 months agoAdd sc-valgrind.sh in DISTFILES.
Niels Möller [Sun, 6 Aug 2023 19:44:11 +0000 (21:44 +0200)] 
Add sc-valgrind.sh in DISTFILES.

21 months agoDefine global test_side_channel unconditionally.
Niels Möller [Sun, 6 Aug 2023 18:48:36 +0000 (20:48 +0200)] 
Define global test_side_channel unconditionally.

21 months agoLet make check test for side channel silence, if valgrind is available.
Niels Möller [Sat, 5 Aug 2023 19:05:49 +0000 (21:05 +0200)] 
Let make check test for side channel silence, if valgrind is available.

21 months agoci: Fix testing of c89 build.
Niels Möller [Fri, 6 Oct 2023 08:25:45 +0000 (10:25 +0200)] 
ci: Fix testing of c89 build.

21 months agoci: Use a job template for native jobs.
Niels Möller [Fri, 6 Oct 2023 08:05:28 +0000 (10:05 +0200)] 
ci: Use a job template for native jobs.

21 months agoci: Add config.log as artifact for cross builds, and minor cleanup.
Niels Möller [Fri, 6 Oct 2023 07:48:01 +0000 (09:48 +0200)] 
ci: Add config.log as artifact for cross builds, and minor cleanup.

21 months agoUse bswap-internal.h macros in more places.
Niels Möller [Wed, 4 Oct 2023 07:08:27 +0000 (09:08 +0200)] 
Use bswap-internal.h macros in more places.

21 months agoDelete redundant assignment in umac code.
Niels Möller [Wed, 4 Oct 2023 06:02:58 +0000 (08:02 +0200)] 
Delete redundant assignment in umac code.

21 months agoci: Switch to nettle-build-images, fixes cross builds.
Niels Möller [Wed, 4 Oct 2023 05:55:28 +0000 (07:55 +0200)] 
ci: Switch to nettle-build-images, fixes cross builds.

21 months agoLimit check-fat testing to relevant testcases.
Niels Möller [Tue, 3 Oct 2023 18:53:03 +0000 (20:53 +0200)] 
Limit check-fat testing to relevant testcases.

21 months agoReduce test count for some of the slower tests.
Niels Möller [Tue, 3 Oct 2023 18:08:06 +0000 (20:08 +0200)] 
Reduce test count for some of the slower tests.

21 months agoMove tools tests to tools/ subdirectory.
Niels Möller [Tue, 3 Oct 2023 17:07:36 +0000 (19:07 +0200)] 
Move tools tests to tools/ subdirectory.

2 years agoUpdate autoconf macro usage.
Niels Möller [Wed, 2 Aug 2023 15:58:13 +0000 (17:58 +0200)] 
Update autoconf macro usage.

2 years agoDelete unused configure macro LSH_FUNC_STRSIGNAL.
Niels Möller [Wed, 2 Aug 2023 07:11:28 +0000 (09:11 +0200)] 
Delete unused configure macro LSH_FUNC_STRSIGNAL.

2 years agoUse strerror unconditionally, delete configure logic to fall back to sys_errlist.
Niels Möller [Wed, 2 Aug 2023 07:07:06 +0000 (09:07 +0200)] 
Use strerror unconditionally, delete configure logic to fall back to sys_errlist.

2 years agoDelete obsolete configure logic for rntcl and ac_cv_prog_cc_stdc.
Niels Möller [Wed, 2 Aug 2023 06:56:01 +0000 (08:56 +0200)] 
Delete obsolete configure logic for rntcl and ac_cv_prog_cc_stdc.

2 years agoChangeLog entry for Nettle-3.9.1 release. nettle_3.9.1_release_20230601
Niels Möller [Thu, 1 Jun 2023 18:39:55 +0000 (20:39 +0200)] 
ChangeLog entry for Nettle-3.9.1 release.

2 years agoNEWS entries for Nettle-3.9.1.
Niels Möller [Sat, 27 May 2023 18:00:08 +0000 (20:00 +0200)] 
NEWS entries for Nettle-3.9.1.

2 years agoUpdate version numbers for Nettle-3.9.1.
Niels Möller [Fri, 26 May 2023 10:12:22 +0000 (12:12 +0200)] 
Update version numbers for Nettle-3.9.1.

2 years agoAdd missing OCB entry to the detailed node listing.
Niels Möller [Fri, 26 May 2023 07:37:54 +0000 (09:37 +0200)] 
Add missing OCB entry to the detailed node listing.

2 years agoFix ocb loop for processing larger messages.
Niels Möller [Fri, 19 May 2023 19:37:57 +0000 (21:37 +0200)] 
Fix ocb loop for processing larger messages.

From Jussi Kivilinna:
* ocb.c (ocb_crypt_n): Fix broken loop logic.
* testsuite/ocb-test.c (test_main): Add test vector from libgcrypt,
with larger message, to exercise above loop.

2 years agox86_64: Fix alignment bug in _nettle_ghash_update. fix-x86_64-ghash-alignment
Niels Möller [Tue, 16 May 2023 19:11:04 +0000 (21:11 +0200)] 
x86_64: Fix alignment bug in _nettle_ghash_update.

2 years agoFix mpz_init/mpz_clear usage in eccdata.c.
Niels Möller [Mon, 15 May 2023 18:01:14 +0000 (20:01 +0200)] 
Fix mpz_init/mpz_clear usage in eccdata.c.

2 years agoChangeLog entry for 3.9 release. nettle_3.9_release_20230514
Niels Möller [Sun, 14 May 2023 15:03:00 +0000 (17:03 +0200)] 
ChangeLog entry for 3.9 release.

2 years agoDelete unused file texinfo.tex.
Niels Möller [Fri, 12 May 2023 19:43:00 +0000 (21:43 +0200)] 
Delete unused file texinfo.tex.

2 years agoUpdate config.guess, config.sub and install-sh to latest gnulib versions.
Niels Möller [Fri, 12 May 2023 19:36:50 +0000 (21:36 +0200)] 
Update config.guess, config.sub and install-sh to latest gnulib versions.

2 years agoDocument Nettle-3.9 known issues.
Niels Möller [Fri, 12 May 2023 19:15:23 +0000 (21:15 +0200)] 
Document Nettle-3.9 known issues.

2 years agoDoc fix for version and date.
Simon Josefsson [Thu, 11 May 2023 19:02:00 +0000 (21:02 +0200)] 
Doc fix for version and date.

2 years agoImprove ARCFOUR docs.
Simon Josefsson [Thu, 11 May 2023 18:42:00 +0000 (20:42 +0200)] 
Improve ARCFOUR docs.

2 years agoFix compile error in --disable-public-key configuration.
Niels Möller [Wed, 10 May 2023 14:59:28 +0000 (16:59 +0200)] 
Fix compile error in --disable-public-key configuration.

2 years agoFixes to OCB documentation.
Justus Winter [Tue, 9 May 2023 05:49:54 +0000 (07:49 +0200)] 
Fixes to OCB documentation.

2 years agoUpdate NEWS.
Niels Möller [Sun, 7 May 2023 14:32:39 +0000 (16:32 +0200)] 
Update NEWS.

2 years agoUpdate version numbers for Nettle-3.9.
Niels Möller [Sun, 7 May 2023 14:26:45 +0000 (16:26 +0200)] 
Update version numbers for Nettle-3.9.

2 years agoNEWS entries for Nettle-3.9.
Niels Möller [Sun, 7 May 2023 13:30:40 +0000 (15:30 +0200)] 
NEWS entries for Nettle-3.9.

2 years agoNEWS entries for Nettle-3.8.1
Niels Möller [Tue, 26 Jul 2022 18:35:55 +0000 (20:35 +0200)] 
NEWS entries for Nettle-3.8.1

(cherry picked from commit f441231f77687c00acf66971bcfbd1dd97776f97)

2 years agoRework SIV tests.
Niels Möller [Tue, 25 Apr 2023 18:51:40 +0000 (20:51 +0200)] 
Rework SIV tests.

2 years agoRework OCB tests.
Niels Möller [Mon, 24 Apr 2023 17:47:53 +0000 (19:47 +0200)] 
Rework OCB tests.

2 years agoChangeLog update.
Niels Möller [Sun, 23 Apr 2023 19:06:59 +0000 (21:06 +0200)] 
ChangeLog update.

2 years agoDelete an obsolete comment and an obsolete forward declaration.
Niels Möller [Sun, 23 Apr 2023 19:05:44 +0000 (21:05 +0200)] 
Delete an obsolete comment and an obsolete forward declaration.

2 years agoRename siv-test.c --> siv-cmac-test.c.
Niels Möller [Sun, 23 Apr 2023 18:56:11 +0000 (20:56 +0200)] 
Rename siv-test.c --> siv-cmac-test.c.

2 years agoDocument OCB support.
Niels Möller [Fri, 21 Apr 2023 12:53:33 +0000 (14:53 +0200)] 
Document OCB support.

2 years agoMinor whitespace fix.
Niels Möller [Fri, 21 Apr 2023 12:52:19 +0000 (14:52 +0200)] 
Minor whitespace fix.

2 years agoRewrite of table-based ghash code, for side-channel silence.
Niels Möller [Thu, 13 Apr 2023 17:11:25 +0000 (19:11 +0200)] 
Rewrite of table-based ghash code, for side-channel silence.

2 years agoMerge branch 'x86_ghash' into 'master'
Niels Möller [Fri, 7 Apr 2023 08:57:46 +0000 (08:57 +0000)] 
Merge branch 'x86_ghash' into 'master'

Use Test instruction instead of And to check remaining single block

See merge request nettle/nettle!59

2 years agoUse Test instruction instead of And to check remaining single block
Maamoun TK [Mon, 3 Apr 2023 05:54:39 +0000 (05:54 +0000)] 
Use Test instruction instead of And to check remaining single block

2 years agoUpdate reference to the Yarrow paper.
Justus Winter [Thu, 23 Feb 2023 10:06:51 +0000 (11:06 +0100)] 
Update reference to the Yarrow paper.

2 years agoChangeLog and copyright update.
Niels Möller [Mon, 3 Apr 2023 05:27:29 +0000 (07:27 +0200)] 
ChangeLog and copyright update.

2 years agoMerge branch 'nettle-x86_ghash' into master
Niels Möller [Sun, 2 Apr 2023 12:52:45 +0000 (14:52 +0200)] 
Merge branch 'nettle-x86_ghash' into master

See https://git.lysator.liu.se/nettle/nettle/-/merge_requests/57

2 years agoNew constant OCB_MAX_NONCE_SIZE.
Niels Möller [Sat, 25 Mar 2023 16:24:43 +0000 (17:24 +0100)] 
New constant OCB_MAX_NONCE_SIZE.

2 years ago[x86_64] Use 2-way GHASH pclmul update
Maamoun TK [Thu, 23 Mar 2023 22:23:09 +0000 (00:23 +0200)] 
[x86_64] Use 2-way GHASH pclmul update

2 years agoAdd link to puthon bindings.
Niels Möller [Tue, 21 Feb 2023 06:53:18 +0000 (07:53 +0100)] 
Add link to puthon bindings.

2 years agomidipix platform support
red@foxi.me [Wed, 15 Feb 2023 12:10:33 +0000 (12:10 +0000)] 
midipix platform support

Signed-off-by: Ørjan Malde <red@foxi.me>
2 years agox86_64: Fix incorrect w64 setup in sha256_compress_n.asm.
Niels Möller [Thu, 16 Feb 2023 19:18:59 +0000 (20:18 +0100)] 
x86_64: Fix incorrect w64 setup in sha256_compress_n.asm.

Report and fix from Gisle Vanem.

2 years agox86_64: Comment fixes.
Niels Möller [Thu, 16 Feb 2023 19:14:08 +0000 (20:14 +0100)] 
x86_64: Comment fixes.

2 years agoAdd benchmarking of ocb_aes128. ocb-merge
Niels Möller [Wed, 8 Feb 2023 07:35:09 +0000 (08:35 +0100)] 
Add benchmarking of ocb_aes128.

2 years agoAdd tests of ocb message functions.
Niels Möller [Tue, 7 Feb 2023 19:37:40 +0000 (20:37 +0100)] 
Add tests of ocb message functions.

2 years agoImplement OCB mode, RFC 7253.
Niels Möller [Tue, 7 Feb 2023 19:04:03 +0000 (20:04 +0100)] 
Implement OCB mode, RFC 7253.

2 years agoExtend aead tests.
Niels Möller [Mon, 6 Feb 2023 19:15:10 +0000 (20:15 +0100)] 
Extend aead tests.

* testsuite/testutils.c (test_aead): Always use set_nonce function
pointer if non-NULL, test varying alignment, output the unexpected
data when test fails.

2 years agoconst-declare the xts_key argument to xts aes encrypt/decrypt message functions.
Niels Möller [Mon, 5 Dec 2022 14:20:02 +0000 (15:20 +0100)] 
const-declare the xts_key argument to xts aes encrypt/decrypt message functions.

2 years agoAdd FIXME comment on ccm_aes128_encrypt_message, API could be improved.
Niels Möller [Mon, 5 Dec 2022 14:15:22 +0000 (15:15 +0100)] 
Add FIXME comment on ccm_aes128_encrypt_message, API could be improved.

2 years agoMerge branch 'delete-arcfour-asm' into master
Niels Möller [Thu, 10 Nov 2022 19:04:43 +0000 (20:04 +0100)] 
Merge branch 'delete-arcfour-asm' into master

2 years agoChangeLog update.
Niels Möller [Wed, 9 Nov 2022 19:55:46 +0000 (20:55 +0100)] 
ChangeLog update.

2 years agoMerge branch 'nettle-ppc-poly1305-multi' into master
Niels Möller [Wed, 9 Nov 2022 10:26:54 +0000 (11:26 +0100)] 
Merge branch 'nettle-ppc-poly1305-multi' into master

See merge request nettle/nettle!56

2 years agoWhitespace fixes.
Niels Möller [Wed, 9 Nov 2022 10:26:18 +0000 (11:26 +0100)] 
Whitespace fixes.

2 years ago[PowerPC] Use INC_GPR/INC_VR marcos and define HAVE_NATIVE_poly1305_blocks in fat...
Maamoun TK [Tue, 8 Nov 2022 06:19:33 +0000 (08:19 +0200)] 
[PowerPC] Use INC_GPR/INC_VR marcos and define HAVE_NATIVE_poly1305_blocks in fat build

2 years agoAdd ASM_FLAGS variable to configure.
Niels Möller [Mon, 7 Nov 2022 19:18:20 +0000 (20:18 +0100)] 
Add ASM_FLAGS variable to configure.

2 years agoComment fix
Niels Möller [Mon, 7 Nov 2022 19:13:30 +0000 (20:13 +0100)] 
Comment fix

2 years agoUpdate BLOCK_R64 macro description
Maamoun TK [Sun, 6 Nov 2022 06:11:18 +0000 (06:11 +0000)] 
Update BLOCK_R64 macro description

2 years ago[PowerPC] Move register allocation from poly1305.m4
Maamoun TK [Sun, 6 Nov 2022 06:00:38 +0000 (08:00 +0200)] 
[PowerPC] Move register allocation from poly1305.m4

2 years ago[PowerPC] Implement _nettle_poly1305_blocks based on radix 2^44
Maamoun TK [Tue, 1 Nov 2022 06:09:44 +0000 (08:09 +0200)] 
[PowerPC] Implement _nettle_poly1305_blocks based on radix 2^44

2 years agox86_64: Implement _nettle_poly1305_blocks.
Niels Möller [Mon, 31 Oct 2022 18:18:24 +0000 (19:18 +0100)] 
x86_64: Implement _nettle_poly1305_blocks.

2 years agoNew function _nettle_poly1305_update.
Niels Möller [Mon, 31 Oct 2022 18:04:23 +0000 (19:04 +0100)] 
New function _nettle_poly1305_update.

2 years agoMinor comment fix.
Niels Möller [Mon, 31 Oct 2022 17:48:52 +0000 (18:48 +0100)] 
Minor comment fix.

2 years agoMerge branch 'power7-chacha-fix' into 'master'
Niels Möller [Thu, 20 Oct 2022 19:07:51 +0000 (19:07 +0000)] 
Merge branch 'power7-chacha-fix' into 'master'

Fix illegal instruction in chacha-2core.asm on POWER7

See merge request nettle/nettle!54

2 years agoFix illegal instruction in chacha-2core.asm on POWER7
Maamoun TK [Thu, 20 Oct 2022 12:54:19 +0000 (14:54 +0200)] 
Fix illegal instruction in chacha-2core.asm on POWER7

2 years agoDocumentation of Balloon hash.
Zoltan Fridrich [Sun, 16 Oct 2022 13:00:36 +0000 (15:00 +0200)] 
Documentation of Balloon hash.

2 years agoUse updated version of qemu that emulates vmsumudm properly on ppc
Maamoun TK [Thu, 13 Oct 2022 09:47:08 +0000 (11:47 +0200)] 
Use updated version of qemu that emulates vmsumudm properly on ppc

2 years agoUndo workaround for unsupported vmsumudm on ppc
Maamoun TK [Thu, 13 Oct 2022 09:46:50 +0000 (11:46 +0200)] 
Undo workaround for unsupported vmsumudm on ppc

2 years agoFix bug in poly1305-internal.asm affecting big-endian mode
Maamoun TK [Thu, 13 Oct 2022 09:44:41 +0000 (11:44 +0200)] 
Fix bug in poly1305-internal.asm affecting big-endian mode

2 years agoAdd back implementation of mpn_sec_tabselect, for mini-gmp builds.
Niels Möller [Thu, 13 Oct 2022 17:16:36 +0000 (19:16 +0200)] 
Add back implementation of mpn_sec_tabselect, for mini-gmp builds.

2 years agoDelete sec_tabselect, use gmp's mpn_sec_tabselect instead.
Niels Möller [Tue, 11 Oct 2022 18:27:39 +0000 (20:27 +0200)] 
Delete sec_tabselect, use gmp's mpn_sec_tabselect instead.

2 years agoAdd benchmarking of modulo q inversion.
Niels Möller [Sun, 2 Oct 2022 15:56:16 +0000 (17:56 +0200)] 
Add benchmarking of modulo q inversion.

2 years agoFix compiler warnings in the eccdata program.
Niels Möller [Thu, 29 Sep 2022 19:23:22 +0000 (21:23 +0200)] 
Fix compiler warnings in the eccdata program.

2 years agoChangeLog update.
Niels Möller [Thu, 29 Sep 2022 19:19:50 +0000 (21:19 +0200)] 
ChangeLog update.

2 years agoDelete ecc->mul_g and ecc->h_to_a indirection for ecdsa/gostdsa sign. ecdsa-weierstrass-only
Niels Möller [Wed, 28 Sep 2022 17:29:15 +0000 (19:29 +0200)] 
Delete ecc->mul_g and ecc->h_to_a indirection for ecdsa/gostdsa sign.

2 years agoDelete ecc->mul and ecc->mul_g indirection for ecdsa/gostdsa verify.
Niels Möller [Wed, 28 Sep 2022 17:21:50 +0000 (19:21 +0200)] 
Delete ecc->mul and ecc->mul_g indirection for ecdsa/gostdsa verify.

2 years agoMerge branch 'ecdsa-duplication-fix'
Niels Möller [Wed, 28 Sep 2022 15:50:16 +0000 (17:50 +0200)] 
Merge branch 'ecdsa-duplication-fix'

2 years agoComment update ecdsa-duplication-fix
Niels Möller [Wed, 28 Sep 2022 15:46:27 +0000 (17:46 +0200)] 
Comment update

2 years agoStricter validation of nettle_cipher and nettle_hash in tests.
Niels Möller [Wed, 28 Sep 2022 09:49:54 +0000 (11:49 +0200)] 
Stricter validation of nettle_cipher and nettle_hash in tests.

Increase NETTLE_MAX_HASH_BLOCK_SIZE to 144, to accommodate sha3_224.

2 years agoChangeLog and AUTHORS update for SIV-GCM.
Niels Möller [Wed, 28 Sep 2022 08:59:36 +0000 (10:59 +0200)] 
ChangeLog and AUTHORS update for SIV-GCM.

2 years agoChangeLog and AUTHORS update for Balloon.
Niels Möller [Wed, 28 Sep 2022 08:46:41 +0000 (10:46 +0200)] 
ChangeLog and AUTHORS update for Balloon.

2 years agoMerge branch 'wip/dueno/aes-gcm-siv' into 'master'
Niels Möller [Wed, 28 Sep 2022 08:24:50 +0000 (08:24 +0000)] 
Merge branch 'wip/dueno/aes-gcm-siv' into 'master'

Implement AES-GCM-SIV

See merge request nettle/nettle!52

2 years agoImplement AES-GCM-SIV
Daiki Ueno [Tue, 16 Aug 2022 07:37:51 +0000 (16:37 +0900)] 
Implement AES-GCM-SIV

This implements AES-GCM-SIV, described in RFC8452, on top of the
existing AES-GCM primitives.  In particular, its hash algorithm
POLYVAL is implemented using the GHASH with additional byte order
conversion according to RFC8452 Appendix A.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
2 years agoAdd Red Hat copyright lines. balloon
Zoltan Fridrich [Sat, 24 Sep 2022 08:57:34 +0000 (10:57 +0200)] 
Add Red Hat copyright lines.

2 years agoAvoid calling hash update with NULL input (and zero length)
Zoltan Fridrich [Sat, 24 Sep 2022 08:56:31 +0000 (10:56 +0200)] 
Avoid calling hash update with NULL input (and zero length)

2 years agoDelete fail variable in tests
Zoltan Fridrich [Sat, 24 Sep 2022 08:54:38 +0000 (10:54 +0200)] 
Delete fail variable in tests

2 years agoImplement balloon password hashing
Zoltan Fridrich [Wed, 14 Sep 2022 08:07:19 +0000 (10:07 +0200)] 
Implement balloon password hashing

2 years agoFix ECDSA verify corner case
Niels Möller [Wed, 14 Sep 2022 14:17:52 +0000 (16:17 +0200)] 
Fix ECDSA verify corner case

* ecc-ecdsa-verify.c (ecc_ecdsa_verify): Use ecc_nonsec_add_jjj,
to produce correct result in a corner case where point addition
needs to use point duplication. Also use ecc_j_to_a rather than
ecc->h_to_a, since ecdsa supports only weierstrass curves.
* ecc-gostdsa-verify.c (ecc_gostdsa_verify): Analogous change.

* testsuite/ecdsa-verify-test.c (test_main): Add corresponding test.
* testsuite/ecdsa-sign-test.c (test_main): And a test producing
the problematic signature.