]>
git.ipfire.org Git - thirdparty/nettle.git/log
Niels Möller [Wed, 8 Nov 2017 21:48:53 +0000 (22:48 +0100)]
Revert change hiding nettle_secp_256r1 and friends.
Nikos Mavrogiannopoulos [Mon, 6 Nov 2017 15:32:48 +0000 (16:32 +0100)]
.gitlab-ci.yml: added build with gnutls
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 6 Nov 2017 15:19:55 +0000 (16:19 +0100)]
.gitlab-ci.yml: use pre-installed images for gnutls
This avoids the need to install packages during check, and
reduces failures due to infrastructure.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Niels Möller [Sun, 5 Nov 2017 22:34:35 +0000 (23:34 +0100)]
Update release plan.
Niels Möller [Sun, 5 Nov 2017 22:23:42 +0000 (23:23 +0100)]
Update NEWS file, including ABI issue.
Niels Möller [Sun, 5 Nov 2017 21:46:29 +0000 (22:46 +0100)]
Bump version numbers
Niels Möller [Thu, 2 Nov 2017 10:28:51 +0000 (11:28 +0100)]
Start on NEWS entries for nettle-3.4.
Niels Möller [Sun, 29 Oct 2017 09:09:49 +0000 (10:09 +0100)]
Merge branch 'api-opaque' into master-updates
Niels Möller [Mon, 23 Oct 2017 20:41:31 +0000 (22:41 +0200)]
ChangeLog for previous change.
Niels Möller [Mon, 23 Oct 2017 20:35:58 +0000 (22:35 +0200)]
Update ChangeLog.
Niels Möller [Mon, 23 Oct 2017 20:25:58 +0000 (22:25 +0200)]
Merge remote-tracking branch 'origin/master' into api-opaque
Niels Möller [Mon, 23 Oct 2017 20:05:32 +0000 (22:05 +0200)]
Undo added underscores on public symbols.
Niels Möller [Sun, 22 Oct 2017 07:47:48 +0000 (09:47 +0200)]
Set DYLD_LIBRARY_PATH when running tests.
Niels Möller [Tue, 17 Oct 2017 20:37:33 +0000 (22:37 +0200)]
Merge branch 'support-cfb' into master-updates
Niels Möller [Tue, 17 Oct 2017 20:27:33 +0000 (22:27 +0200)]
Update copyright years for CFB code.
Niels Möller [Mon, 16 Oct 2017 19:57:37 +0000 (21:57 +0200)]
Enable debug info when CC_FOR_BUILD is gcc.
* aclocal.m4 (GMP_PROG_CC_FOR_BUILD): Add -g when compiling with
gcc.
Niels Möller [Mon, 16 Oct 2017 19:52:05 +0000 (21:52 +0200)]
Commment fix.
Niels Möller [Mon, 16 Oct 2017 19:46:05 +0000 (21:46 +0200)]
ChangeLog for CFB.
Dmitry Eremin-Solenikov [Sat, 7 Oct 2017 18:55:27 +0000 (21:55 +0300)]
Add CFB block mode support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Niels Möller [Sat, 14 Oct 2017 21:04:13 +0000 (23:04 +0200)]
Update .gitignore, to unclutter builds in the source directory.
Nikos Mavrogiannopoulos [Thu, 5 Oct 2017 19:41:30 +0000 (21:41 +0200)]
.gitlab-ci.yml: use fedora 26 build systems
Also removed unused variables.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 5 Oct 2017 19:41:06 +0000 (21:41 +0200)]
.gitlab-ci.yml: renamed targets for better overview in gitlab pipeline interface
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 5 Oct 2017 13:28:15 +0000 (15:28 +0200)]
.gitlab-ci.yml: enable fat builds on x86*
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 5 Oct 2017 13:27:14 +0000 (15:27 +0200)]
.gitlab-ci.yml: added aarch64 build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Niels Möller [Sun, 1 Oct 2017 21:45:52 +0000 (23:45 +0200)]
Update release plan.
Niels Möller [Thu, 28 Sep 2017 19:27:01 +0000 (21:27 +0200)]
Update release plan.
Niels Möller [Sun, 24 Sep 2017 11:38:30 +0000 (13:38 +0200)]
Merge branch 'armor-signedness' into master-updates
Niels Möller [Sun, 24 Sep 2017 11:33:46 +0000 (13:33 +0200)]
Fix remaining pointer-signedness warnings for base64.
* sexp-transport-format.c (base64_encode_in_place): New helper
function.
(sexp_transport_vformat): Use it.
* testsuite/base64-test.c (test_fuzz_once): Update to use char
type where appropriate.
(test_main): Use helper functions base64_encode_in_place and
base64_decode_in_place (copied to this file).
* tools/pkcs1-conv.c (base64_decode_in_place): New helper
function.
(decode_base64): Use it.
Niels Möller [Sun, 24 Sep 2017 11:15:46 +0000 (13:15 +0200)]
Fix pointer-signedness warnings in tests.
* testsuite/testutils.c (tstring_data): Use uint8_t for data
argument.
* testsuite/testutils.h (SDATA): Use US macro to cast data
argument.
Niels Möller [Thu, 14 Sep 2017 21:39:29 +0000 (23:39 +0200)]
hkdf: Reduce includes. Use Nettle licensing notice.
* hkdf.c: Delete unneeded includes. Use Nettle licensing notice.
* hkdf.h: Include only nettle-types.h, not nettle-meta.h.
Niels Möller [Thu, 14 Sep 2017 07:06:49 +0000 (09:06 +0200)]
Workaround to silence the clang static analyzer.
Niels Möller [Tue, 12 Sep 2017 20:38:34 +0000 (22:38 +0200)]
Avoid redefining mpn_zero_p when building with mini-gmp.
Niels Möller [Sat, 9 Sep 2017 19:50:58 +0000 (21:50 +0200)]
ChangeLog entries for Daiki Ueno's fixes.
Daiki Ueno [Sat, 5 Aug 2017 07:43:45 +0000 (09:43 +0200)]
eccdata: Redirect ecc_point_out to given stream, instead of stderr
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Sat, 5 Aug 2017 07:43:44 +0000 (09:43 +0200)]
eccdata: Emit correct ecc_Bmodq_shifted for curve448
In curve448, the bit size of the order is slightly smaller than the
one of p's. Adjust ecc_Bmodq_shifted accordingly.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Sat, 5 Aug 2017 07:43:43 +0000 (09:43 +0200)]
ecc-mul-test: Fix mpn_cmp calls
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Niels Möller [Sat, 9 Sep 2017 19:13:07 +0000 (21:13 +0200)]
Updated mini-gmp from the gmp repository, latest change from 2017-07-23.
Niels Möller [Wed, 6 Sep 2017 20:39:39 +0000 (22:39 +0200)]
Merge branch 'hkdf-support'
Niels Möller [Wed, 6 Sep 2017 20:37:52 +0000 (22:37 +0200)]
ChangeLog entry.
Andreas Schneider [Mon, 4 Sep 2017 08:01:19 +0000 (10:01 +0200)]
fat-arm: Add missing define for _GNU_SOURCE
If configure finds secure_getenv it wants to use it. However it fails to
find the prototype because it is a GNU extension.
Signed-off-by: Andreas Schneider <asn@samba.org>
Niels Möller [Wed, 6 Sep 2017 20:30:55 +0000 (22:30 +0200)]
Minor reorganization of hkdf_expand.
* hkdf.c (hkdf_expand): Eliminate a (signed) ssize_t variable, use
break rather than return at loop termination.
Niels Möller [Wed, 6 Sep 2017 19:29:02 +0000 (21:29 +0200)]
ChangeLog entry for HKDF.
Niels Möller [Wed, 6 Sep 2017 19:19:26 +0000 (21:19 +0200)]
Indent and whitespace fixes.
Nikos Mavrogiannopoulos [Wed, 17 May 2017 14:29:40 +0000 (16:29 +0200)]
doc: added HKDF documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 16 May 2017 12:30:41 +0000 (14:30 +0200)]
Added the HKDF key derivation function and test vectors
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Niels Möller [Tue, 29 Aug 2017 15:31:13 +0000 (17:31 +0200)]
Merge branch 'openssl-bench-update'
Niels Möller [Tue, 29 Aug 2017 15:28:51 +0000 (17:28 +0200)]
Add Red Hat copyright line.
Niels Möller [Sun, 27 Aug 2017 19:05:12 +0000 (21:05 +0200)]
ChangeLog entry for previous change.
Niels Möller [Sat, 26 Aug 2017 07:32:25 +0000 (09:32 +0200)]
Separate the two uses of the configured value GMP_NUMB_BITS.
In version.h, GMP_NUMB_BITS is needed only for mini-gmp builds. In
non-mini-gmp builds, substitute a dummy value there, to make the
contents of this header file platform independent. In Makefile, we
always need a properly configured value, and do this with the renamed
variable NUMB_BITS.
Niels Möller [Sun, 27 Aug 2017 18:45:21 +0000 (20:45 +0200)]
Change type of base16- and base64-encoded data from uint8_t to char.
Niels Möller [Sat, 26 Aug 2017 20:54:59 +0000 (22:54 +0200)]
Add missing assert.
Niels Möller [Sat, 26 Aug 2017 09:02:30 +0000 (11:02 +0200)]
Rearrange openssl cipher glue, to use struct openssl_cipher_ctx.
Niels Möller [Sat, 26 Aug 2017 08:38:40 +0000 (10:38 +0200)]
Update openssl configure tests.
Daniel P. Berrange [Thu, 3 Aug 2017 14:24:13 +0000 (15:24 +0100)]
examples: convert nettle-benchmark to use openssl EVP APIs
The nettle-benchmark program currently uses the openssl low level
cipher APIs for benchmarking. This means it always runs the generic
software implementation, never able to take advantage of impls
optimized for new hardware (eg AES-NI).
Rewriting it to use the higher EVP APIs means we can use the same
code for all ciphers, and automatically trigger hardware optimized
versions, giving a fairer comparison against openssl as commonly
used in applications.
Use of the generic openssl impl can still be forced by setting an
env variable OPENSSL_ia32cap="~0x200000200000000"
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Niels Möller [Tue, 18 Jul 2017 18:52:30 +0000 (20:52 +0200)]
Fix for in-place ecc_add_eh.
* ecc-add-eh.c (ecc_add_eh): Fix in-place operation by reordering
two multiplies. Previously, in-place operation resulted in an
invalid call to mpn_mul with overlapping operands. Reported by
Sergei Trofimovich.
Niels Möller [Fri, 9 Jun 2017 20:49:00 +0000 (22:49 +0200)]
ChangeLog entries for previous two commits.
Daiki Ueno [Fri, 9 Jun 2017 20:48:34 +0000 (22:48 +0200)]
Test case for pss signature problem.
* rsa-pss-sign-tr-test.c (test_main): Add test case
contributed by Daiki Ueno. Problem originally found by oss-fuzz,
see https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2132.
That problem report is currently embargoed, but will hopefully be
public in a month or two.
Niels Möller [Fri, 9 Jun 2017 20:46:04 +0000 (22:46 +0200)]
Fix assertion failure in pss signature verification.
* pss.c (pss_verify_mgf1): Check for m being too large, fixing an
assertion failure for certain invalid signatures. Based on a patch
contributed by Daiki Ueno.
Niels Möller [Wed, 7 Jun 2017 18:31:59 +0000 (20:31 +0200)]
Rework make targets related to test-rules.
Niels Möller [Sat, 20 May 2017 19:57:07 +0000 (21:57 +0200)]
Add srcdir prefix to .test-rules.make target.
Nikos Mavrogiannopoulos [Wed, 17 May 2017 13:45:40 +0000 (15:45 +0200)]
testsuite/Makefile.in: ensure .test-rules.make is regenerated
That is, regenerate when Makefile.in is modified.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 16 May 2017 13:25:28 +0000 (15:25 +0200)]
hogweed-benchmark: eliminated memory leak
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 16 May 2017 13:23:07 +0000 (15:23 +0200)]
_aes_set_key: ensure with assert() that nk is non-zero
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 16 May 2017 13:12:06 +0000 (15:12 +0200)]
.gitlab-ci.yml: added static analyzers run
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 16 May 2017 11:14:46 +0000 (13:14 +0200)]
.gitlab-ci.yml: ubsan use fedora25
Nikos Mavrogiannopoulos [Tue, 16 May 2017 11:23:13 +0000 (13:23 +0200)]
.gitlab-ci.yml: use asan from fedora25 instead of centos7
The former provides a much newer version.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Niels Möller [Sun, 9 Apr 2017 13:48:01 +0000 (15:48 +0200)]
Define accessor functions to get address of ecc curve structs.
Niels Möller [Sun, 9 Apr 2017 13:18:52 +0000 (15:18 +0200)]
New function nettle_get_armors.
Niels Möller [Sun, 9 Apr 2017 13:15:18 +0000 (15:15 +0200)]
New function nettle_get_aeads.
Niels Möller [Sun, 9 Apr 2017 13:07:52 +0000 (15:07 +0200)]
New function nettle_get_hashes.
Nikos Mavrogiannopoulos [Tue, 28 Feb 2017 09:03:24 +0000 (10:03 +0100)]
Made current contibution rules explicit
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Niels Möller [Sun, 9 Apr 2017 10:27:23 +0000 (12:27 +0200)]
Fix memory leak in dlopen-test.
Niels Möller [Sun, 9 Apr 2017 10:23:59 +0000 (12:23 +0200)]
Delete valgrind magic in pss-test.
* testsuite/pss-test.c: Delete magic to let valgrind to check if
pss_encode_mgf1 is side-channel silent with respect to the salt
and digest inputs. It turns out that the most significant bits of
the padded bignum, and hence its size, depends on these inputs.
Which results in a data-dependent branch in the normalization code
of at the end of gmp's mpz_import.
Niels Möller [Tue, 4 Apr 2017 21:13:53 +0000 (23:13 +0200)]
Avoid unnecessary memset and xor operations in pss_encode_mgf1.
Niels Möller [Tue, 4 Apr 2017 19:34:08 +0000 (21:34 +0200)]
Use const for input mpz_t argument to pss_verify_mgf1.
Niels Möller [Tue, 4 Apr 2017 19:29:36 +0000 (21:29 +0200)]
ChangeLog entries for RSA PSS code.
Daiki Ueno [Thu, 2 Mar 2017 13:34:54 +0000 (14:34 +0100)]
Add PSS variants for RSA sign/verify functions
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 23 Feb 2017 10:30:27 +0000 (11:30 +0100)]
Implement PSS encoding functions
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Niels Möller [Mon, 20 Mar 2017 20:09:54 +0000 (21:09 +0100)]
New constant NETTLE_MAX_HASH_CONTEXT_SIZE.
* nettle-internal.h (NETTLE_MAX_HASH_CONTEXT_SIZE): New constant.
* testsuite/meta-hash-test.c (test_main): Add sanity check for
NETTLE_MAX_HASH_CONTEXT_SIZE.
Niels Möller [Mon, 20 Mar 2017 20:07:25 +0000 (21:07 +0100)]
Let nettle-hash --list display internal context size.
* tools/nettle-hash.c (list_algorithms): Also display the internal
context size.
Marcus Hoffmann [Tue, 28 Feb 2017 18:56:40 +0000 (19:56 +0100)]
Make nettle compile with pre-UAL arm assembler.
See: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0204j/Cjagjjbc.html
The pre-UAL instruction is also accepted by modern assemblers.
Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com>
Niels Möller [Thu, 12 Jan 2017 21:03:22 +0000 (22:03 +0100)]
Use nettle_lookup_hash.
Niels Möller [Thu, 12 Jan 2017 20:54:38 +0000 (21:54 +0100)]
New functions nettle_get_hashes and nettle_lookup_hash.
Niels Möller [Tue, 3 Jan 2017 17:38:49 +0000 (18:38 +0100)]
ChangeLog entry for previous commit.
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 12:54:16 +0000 (13:54 +0100)]
ecdsa_verify: eliminated memory leak on error path
Niels Möller [Mon, 10 Oct 2016 09:25:02 +0000 (11:25 +0200)]
Use const for _nettle_write_* source argument.
Niels Möller [Sat, 1 Oct 2016 07:27:27 +0000 (09:27 +0200)]
Note release.
Niels Möller [Sat, 1 Oct 2016 07:25:28 +0000 (09:25 +0200)]
Tweak NEWS entry.
Niels Möller [Tue, 27 Sep 2016 05:23:45 +0000 (07:23 +0200)]
Updated NEWS file.
Niels Möller [Wed, 21 Sep 2016 05:04:46 +0000 (07:04 +0200)]
Fix a few minor documentation typos.
Niels Möller [Mon, 19 Sep 2016 19:15:41 +0000 (21:15 +0200)]
Updated testing status.
Niels Möller [Mon, 19 Sep 2016 19:14:27 +0000 (21:14 +0200)]
Fix ECDSA broken node links. Reported by Nick Alcock.
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 07:57:24 +0000 (09:57 +0200)]
Use gitlab.com's shared runners
That is, phase out our specific runners to reduce administrative
burden, and rely on gitlab.com shared infrastructure.
http://docs.gitlab.com/ce/ci/runners/README.html
Niels Möller [Tue, 13 Sep 2016 20:46:43 +0000 (22:46 +0200)]
Trivial merge.
Niels Möller [Tue, 13 Sep 2016 20:44:41 +0000 (22:44 +0200)]
Update release plan.
Niels Möller [Tue, 13 Sep 2016 20:32:28 +0000 (22:32 +0200)]
Add SHA3 hashes to nettle_hashes. Reported by Thomas Walter.
Niels Möller [Wed, 7 Sep 2016 20:08:31 +0000 (22:08 +0200)]
Mention memeql_sec in NEWS.
Niels Möller [Wed, 7 Sep 2016 20:06:43 +0000 (22:06 +0200)]
Document memeql_sec.
Niels Möller [Wed, 7 Sep 2016 20:05:30 +0000 (22:05 +0200)]
doc: Split Elliptic curves into sub-nodes.
Niels Möller [Wed, 7 Sep 2016 20:03:08 +0000 (22:03 +0200)]
Fix documentation typo.