]>
git.ipfire.org Git - thirdparty/nettle.git/log
Zoltan Fridrich [Sat, 24 Sep 2022 08:57:34 +0000 (10:57 +0200)]
Add Red Hat copyright lines.
Zoltan Fridrich [Sat, 24 Sep 2022 08:56:31 +0000 (10:56 +0200)]
Avoid calling hash update with NULL input (and zero length)
Zoltan Fridrich [Sat, 24 Sep 2022 08:54:38 +0000 (10:54 +0200)]
Delete fail variable in tests
Zoltan Fridrich [Wed, 14 Sep 2022 08:07:19 +0000 (10:07 +0200)]
Implement balloon password hashing
Niels Möller [Thu, 8 Sep 2022 18:24:16 +0000 (20:24 +0200)]
Cleanup of eccdata.
* eccdata.c (string_toupper): New utility function.
(output_modulo): Move more of the per-modulo output here.
(output_curve): Remove corresponding code.
Niels Möller [Wed, 31 Aug 2022 16:06:03 +0000 (18:06 +0200)]
Move bswap-related functions to bswap-internal.h.
Niels Möller [Fri, 19 Aug 2022 07:39:31 +0000 (09:39 +0200)]
Update AUTHORS file with SM4 contribution.
Niels Möller [Thu, 18 Aug 2022 14:51:48 +0000 (16:51 +0200)]
Add sm4.h to HEADERS.
Niels Möller [Thu, 18 Aug 2022 13:35:49 +0000 (15:35 +0200)]
ChangeLog entries for SM4.
Tianjia Zhang [Mon, 21 Feb 2022 08:37:16 +0000 (16:37 +0800)]
doc: documentation for GCM using SM4 cipher
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Tianjia Zhang [Mon, 21 Feb 2022 08:37:15 +0000 (16:37 +0800)]
gcm: Add SM4 as the GCM underlying cipher
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Niels Möller [Thu, 18 Aug 2022 09:31:47 +0000 (11:31 +0200)]
doc: Add menu items for SM4
Tianjia Zhang [Mon, 21 Feb 2022 08:37:14 +0000 (16:37 +0800)]
doc: documentation for SM4 cipher algorithm
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Tianjia Zhang [Mon, 21 Feb 2022 08:37:13 +0000 (16:37 +0800)]
nettle-benchmark: bench SM4 symmetric algorithm
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Tianjia Zhang [Mon, 21 Feb 2022 08:37:12 +0000 (16:37 +0800)]
testsuite: add test for SM4 symmetric algorithm
Add a testuite for SM4 symmetric algorithm. Test vectors are based
on: https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Tianjia Zhang [Mon, 21 Feb 2022 08:37:11 +0000 (16:37 +0800)]
Introduce SM4 symmetric cipher algorithm
Introduce the SM4 cipher algorithms (OSCCA GB/T 32907-2016).
SM4 (GBT.32907-2016) is a cryptographic standard issued by the
Organization of State Commercial Administration of China (OSCCA)
as an authorized cryptographic algorithms for the use within China.
SMS4 was originally created for use in protecting wireless
networks, and is mandated in the Chinese National Standard for
Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
(GB.15629.11-2003).
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Niels Möller [Thu, 18 Aug 2022 07:54:42 +0000 (09:54 +0200)]
Change mips abi check to apply only to mips64.
Niels Möller [Wed, 17 Aug 2022 14:53:11 +0000 (16:53 +0200)]
tests: Define mpz_urandomm when building with mini-gmp.
Niels Möller [Tue, 16 Aug 2022 19:31:41 +0000 (21:31 +0200)]
Fix memory leak in new test.
Niels Möller [Tue, 16 Aug 2022 17:47:20 +0000 (19:47 +0200)]
Reduce output range of ecc_mod_sub.
* ecc-mod-arith.c (ecc_mod_sub): Ensure that if inputs are in the
range 0 <= a, b < 2m, then output is in the same range.
* eccdata.c (output_curve): New outputs ecc_Bm2p and ecc_Bm2q.
* ecc-internal.h (struct ecc_modulo): New member Bm2m (B^size -
2m), needed by ecc_mod_sub. Update all curves.
* testsuite/ecc-mod-arith-test.c: New tests for ecc_mod_add and
ecc_mod_sub.
Niels Möller [Tue, 16 Aug 2022 15:03:03 +0000 (17:03 +0200)]
Minor cleanup to eccdata program
Niels Möller [Mon, 15 Aug 2022 07:27:36 +0000 (09:27 +0200)]
Merge branch 'sha256-compress-n' into master-updates
Niels Möller [Sun, 14 Aug 2022 18:53:10 +0000 (20:53 +0200)]
Workaround for qemu bug affecting the ppc intruction vmsumudm
Introduce overriding environment variable NETTLE_FAT_DISABLE_POWER9
that disables use of power9 code. This makes poly1305 tests under qemu
pass. See https://gitlab.com/qemu-project/qemu/-/issues/1156.
Niels Möller [Sun, 7 Aug 2022 19:03:56 +0000 (21:03 +0200)]
Document hash compress functions, based on patch from Corentin Labbe.
Niels Möller [Sun, 7 Aug 2022 18:40:59 +0000 (20:40 +0200)]
Tweak to AC_CONFIG_SRCDIR.
* configure.ac: Refer to nettle-types.h, rather than arcfour.c,
for AC_CONFIG_SRCDIR.
Niels Möller [Sat, 6 Aug 2022 19:45:01 +0000 (19:45 +0000)]
Merge branch 'ppc-r64-44' into 'master'
[PowerPC] Implement Poly1305 single block update based on radix 2^64
See merge request nettle/nettle!47
Maamoun TK [Sat, 6 Aug 2022 05:09:55 +0000 (05:09 +0000)]
[PowerPC] Use defined structure constants of P1305 in asm.m4
Niels Möller [Fri, 5 Aug 2022 19:23:10 +0000 (21:23 +0200)]
Fix alloca warnings on bsd systems.
* nettle-internal.h: Include stdlib.h, fix alloca warnings on BSD.
* hmac.c: Delete corresponding include here, no longer needed.
Niels Möller [Fri, 5 Aug 2022 19:18:53 +0000 (21:18 +0200)]
Fix to getopt.c includes.
* getopt.c: Include stdlib.h and unistd.h unconditionally,
similarly to the gnulib version of this file.
Niels Möller [Thu, 4 Aug 2022 08:58:00 +0000 (10:58 +0200)]
ChangeLog entries for *BSD portability fixes from Brad Smith.
Brad Smith [Mon, 1 Aug 2022 19:38:15 +0000 (15:38 -0400)]
Fix 64-bit MIPS ABI check for other OS's like *BSD / Linux
Signed-off-by: Brad Smith <brad@comstyle.com>
Brad Smith [Mon, 1 Aug 2022 18:57:34 +0000 (14:57 -0400)]
Eliminate conflict with OpenBSD's swap32 macro
blowfish-bcrypt.c:152:33: error: too many arguments provided to function-like macro invocation
static void swap32(uint32_t *x, int count)
^
/usr/include/sys/endian.h:71:9: note: macro 'swap32' defined here
Signed-off-by: Brad Smith <brad@comstyle.com>
Brad Smith [Sun, 31 Jul 2022 17:44:42 +0000 (13:44 -0400)]
Use proper PIC flag for *BSD OS's
Signed-off-by: Brad Smith <brad@comstyle.com>
Niels Möller [Fri, 29 Jul 2022 20:05:43 +0000 (22:05 +0200)]
s390x: Implement sha256_compress_n
Niels Möller [Tue, 26 Jul 2022 19:24:57 +0000 (21:24 +0200)]
arm: Implement sha256_compress_n
Niels Möller [Thu, 21 Jul 2022 14:20:42 +0000 (16:20 +0200)]
Update mailing list url in README.
Niels Möller [Mon, 11 Jul 2022 08:41:01 +0000 (10:41 +0200)]
arm64: Implement sha256_compress_n
Niels Möller [Mon, 11 Jul 2022 08:36:03 +0000 (10:36 +0200)]
Update C _nettle_sha256_compress_n fat build setup.
Niels Möller [Tue, 5 Jul 2022 17:47:39 +0000 (19:47 +0200)]
Implement _nettle_sha256_compress_n, C and x86_64 asm
Niels Möller [Tue, 5 Jul 2022 17:38:45 +0000 (19:38 +0200)]
New file md-internal.h
Niels Möller [Tue, 28 Jun 2022 15:08:17 +0000 (15:08 +0000)]
Merge branch 's390x-gief-fix' into 'master'
[S390x] Fix assembly error regarding GIEF usage
See merge request nettle/nettle!51
Maamoun TK [Tue, 28 Jun 2022 05:55:32 +0000 (07:55 +0200)]
[S390x] Fix potential compiler error regarding GIEF usage
Niels Möller [Mon, 20 Jun 2022 19:05:40 +0000 (21:05 +0200)]
Additional tests for sha1 and sha256 compression.
* testsuite/sha1-test.c (test_sha1_compress): New function.
(test_main): Add tests for compressing 0, 1 or 2 blocks.
* testsuite/sha256-test.c (test_sha256_compress): New function.
(test_main): Add tests for compressing 0, 1 or 2 blocks.
Niels Möller [Tue, 14 Jun 2022 15:38:04 +0000 (15:38 +0000)]
Merge branch 'chacha_m4_fix' into 'master'
Add missing percent sign for chacha s390x-specific vector names
See merge request nettle/nettle!50
Maamoun TK [Tue, 14 Jun 2022 12:39:15 +0000 (14:39 +0200)]
Add missing percent sign for chacha s390x-specific vector names
Niels Möller [Mon, 13 Jun 2022 17:56:22 +0000 (19:56 +0200)]
Update mail list link.
Niels Möller [Mon, 13 Jun 2022 17:50:32 +0000 (19:50 +0200)]
Delete dead links to postgresql and scheme bindings.
Niels Möller [Mon, 13 Jun 2022 17:45:37 +0000 (17:45 +0000)]
Merge branch 'chacha_m4_fix' into 'master'
Fix a POSIX violation of m4 argument expansion
See merge request nettle/nettle!49
Maamoun TK [Sun, 12 Jun 2022 22:00:39 +0000 (00:00 +0200)]
Fix a POSIX violation of m4 argument expansion
Niels Möller [Sun, 12 Jun 2022 19:51:56 +0000 (21:51 +0200)]
ChangeLog entry for openbsd arm64 fix.
Christian Weisgerber [Sun, 12 Jun 2022 19:51:16 +0000 (21:51 +0200)]
Enable runtime arm64 feature detection on openbsd
Niels Möller [Thu, 9 Jun 2022 16:37:41 +0000 (18:37 +0200)]
New public names md5_compress and sha1_compress.
* md5.h (md5_compress): New public name for compression function.
* sha1.h (sha1_compress): Likewise.
Niels Möller [Thu, 9 Jun 2022 16:33:55 +0000 (18:33 +0200)]
Move declaration of sha256_compress in header file, for consistency.
Niels Möller [Thu, 9 Jun 2022 16:27:47 +0000 (18:27 +0200)]
Use new sha256_compress and sha512_compress functions.
Niels Möller [Thu, 9 Jun 2022 16:23:29 +0000 (18:23 +0200)]
ChangeLog entries for sha256_compress and sha512_compress.
Corentin Labbe [Wed, 1 Jun 2022 17:36:08 +0000 (19:36 +0200)]
Export sha256/sha512_compress functions
nettle export only md5_compress and sha1_compress.
Let's export also the compress functions for sha256 and sha512.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Niels Möller [Thu, 9 Jun 2022 16:39:06 +0000 (18:39 +0200)]
ChangeLog entry for nettle-3.8 release.
Maamoun TK [Sun, 29 May 2022 01:34:44 +0000 (03:34 +0200)]
[PowerPC] Implement Poly1305 single block update based on radix 2^64
Niels Möller [Mon, 23 May 2022 18:48:42 +0000 (20:48 +0200)]
Document MacOS test workaround.
Niels Möller [Mon, 23 May 2022 13:52:50 +0000 (15:52 +0200)]
Add missing file fat-arm64.c to tar file.
Niels Möller [Mon, 23 May 2022 09:54:15 +0000 (11:54 +0200)]
Update config.guess and config.sub to latest versions.
* config.guess: Update to 2022-05-08 version.
* config.sub: Update to 2022-01-03 version.
Niels Möller [Sun, 22 May 2022 14:18:42 +0000 (16:18 +0200)]
NEWS entries for Nettle-3.8.
Niels Möller [Fri, 20 May 2022 18:14:21 +0000 (20:14 +0200)]
Update version numbers, for nettle-3.8.
Niels Möller [Sat, 14 May 2022 17:10:18 +0000 (19:10 +0200)]
Merge branch 'mamonet/nettle-s390x-vf-fix' into master
Niels Möller [Sat, 14 May 2022 17:09:48 +0000 (19:09 +0200)]
Fix comment typo
Niels Möller [Thu, 5 May 2022 18:31:27 +0000 (20:31 +0200)]
Add ChangeLog entry for SM3 contribution.
Niels Möller [Thu, 5 May 2022 18:29:47 +0000 (20:29 +0200)]
Document cbc_aes128_encrypt, cbc_aes192_encrypt and cbc_aes256_encrypt.
Niels Möller [Thu, 28 Apr 2022 19:15:38 +0000 (21:15 +0200)]
Deleted the manual's incomplete and out of date list of authors.
Niels Möller [Thu, 28 Apr 2022 19:04:28 +0000 (21:04 +0200)]
New more accurate AUTHORS file.
Niels Möller [Sat, 9 Apr 2022 16:57:38 +0000 (18:57 +0200)]
Fix ChangeLog typo.
Niels Möller [Thu, 17 Mar 2022 18:54:14 +0000 (19:54 +0100)]
ChangeLog entries for s390x ghash update.
Niels Möller [Thu, 17 Mar 2022 18:45:44 +0000 (19:45 +0100)]
Fix comment typo.
Niels Möller [Wed, 23 Feb 2022 16:51:23 +0000 (16:51 +0000)]
Merge branch 's390x-ghash-refactor' into 'ghash-refactor'
Refactor s390x-specific code for new ghash organization
See merge request nettle/nettle!44
Maamoun TK [Wed, 23 Feb 2022 09:08:07 +0000 (11:08 +0200)]
Refactor s390x-specific code for new ghash organization
Niels Möller [Tue, 22 Feb 2022 18:43:41 +0000 (19:43 +0100)]
ppc: Update fat setup for new ghash organization.
Niels Möller [Tue, 22 Feb 2022 17:01:55 +0000 (18:01 +0100)]
ppc: Update vpmsumd ghash to new organization.
Niels Möller [Tue, 22 Feb 2022 17:00:23 +0000 (18:00 +0100)]
Comment fix.
Niels Möller [Mon, 21 Feb 2022 17:58:40 +0000 (18:58 +0100)]
arm64: Update fat setup for new ghash organization.
Niels Möller [Mon, 21 Feb 2022 17:35:45 +0000 (18:35 +0100)]
Fix comment error
Niels Möller [Mon, 21 Feb 2022 16:39:31 +0000 (17:39 +0100)]
arm64: Update pclmul ghash to new organization.
Niels Möller [Sat, 19 Feb 2022 21:25:57 +0000 (22:25 +0100)]
Update fat setup for new ghash organization.
Niels Möller [Sat, 19 Feb 2022 19:45:37 +0000 (20:45 +0100)]
Delete _ghash_digest.
Niels Möller [Sat, 19 Feb 2022 19:39:03 +0000 (20:39 +0100)]
x86_64: Update pclmul ghash to new organization.
Niels Möller [Sat, 19 Feb 2022 19:00:26 +0000 (20:00 +0100)]
x86_64: Update table-based ghash to new organization.
Niels Möller [Sat, 19 Feb 2022 18:54:34 +0000 (19:54 +0100)]
Move _ghash_digest.
Niels Möller [Fri, 18 Feb 2022 20:14:49 +0000 (21:14 +0100)]
Refactor GCM C implementation.
Assembly implementations not yet updated.
* Makefile.in (nettle_SOURCES): Add ghash-set-key.c ghash-update.c.
(DISTFILES): Replaced gcm-internal.h with ghash-internal.h.
* testsuite/gcm-test.c (test_ghash_internal): Updated to use
_ghash_set_key and _ghash_update.
* gcm.c (INC32): Deleted macro, used in only one place.
(gcm_set_key): Update to use _ghash_set_key.
(gcm_hash): Renamed, was _gcm_hash, and implemented in terms of
_ghash_update.
(bswap_if_le): New function (copied from nist-keywrap.c).
(gcm_hash_sizes): Use bswap_if_le and _ghash_update.
(gcm_set_iv): Updated to use gcm_hash and block16_zero.
(gcm_digest): Use _ghash_digest.
* ghash-internal.h: New file, declaring new internal ghash interface.
* gcm-internal.h: Deleted file.
* ghash-update.c (gcm_gf_shift_8): Moved here (from gcm.c)
(gcm_gf_mul): Likewise.
(_ghash_update): New function, extracted from _nettle_gcm_hash_c.
(_ghash_digest): New function.
* ghash-set-key.c (_ghash_set_key): New file and function.
Extracted from _nettle_gcm_init_key_c and _nettle_gcm_set_key.
Niels Möller [Fri, 18 Feb 2022 20:12:49 +0000 (21:12 +0100)]
New function block16_zero.
Niels Möller [Thu, 17 Feb 2022 18:26:12 +0000 (19:26 +0100)]
Delete code for GCM_TABLE_BITS != 8.
Niels Möller [Tue, 15 Feb 2022 20:21:21 +0000 (21:21 +0100)]
x86_64: Fat setup for GCM.
Niels Möller [Tue, 15 Feb 2022 20:19:31 +0000 (21:19 +0100)]
Fix comment typo.
Niels Möller [Tue, 15 Feb 2022 19:53:26 +0000 (20:53 +0100)]
x86_64: Initial implementation of gcm using the pclmulqdq instructions.
Niels Möller [Thu, 10 Feb 2022 17:32:12 +0000 (18:32 +0100)]
Rearrange gcm configuration defines, and add tests for internal functions.
Niels Möller [Fri, 28 Jan 2022 18:35:38 +0000 (19:35 +0100)]
Add tests for edge cases in poly1305 digest folding.
Niels Möller [Thu, 27 Jan 2022 21:10:50 +0000 (22:10 +0100)]
x86_64: Rewrite of poly1305 assembly.
Niels Möller [Tue, 25 Jan 2022 18:51:14 +0000 (19:51 +0100)]
ChangeLog entry for arm64 implementation of chacha.
Niels Möller [Tue, 25 Jan 2022 18:47:39 +0000 (18:47 +0000)]
Merge branch 'arm64-chacha' into 'master'
[Arm64] Optimize Chacha20
See merge request nettle/nettle!37
Niels Möller [Mon, 24 Jan 2022 19:06:10 +0000 (20:06 +0100)]
ChangeLog entries for new ppc64 ecc files.
Martin Schwenke [Fri, 21 Jan 2022 04:02:38 +0000 (15:02 +1100)]
ecc: Add powerpc64 assembly for ecc_448_modp
Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Niels Möller [Mon, 24 Jan 2022 18:49:52 +0000 (19:49 +0100)]
Move a comment.
Martin Schwenke [Fri, 21 Jan 2022 04:02:37 +0000 (15:02 +1100)]
ecc: Add powerpc64 assembly for ecc_25519_modp
Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>