]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
7 years agoAdd Red Hat copyright line. openssl-benchmark-update
Niels Möller [Tue, 29 Aug 2017 15:28:51 +0000 (17:28 +0200)] 
Add Red Hat copyright line.

7 years agoRearrange openssl cipher glue, to use struct openssl_cipher_ctx.
Niels Möller [Sat, 26 Aug 2017 09:02:30 +0000 (11:02 +0200)] 
Rearrange openssl cipher glue, to use struct openssl_cipher_ctx.

7 years agoUpdate openssl configure tests.
Niels Möller [Sat, 26 Aug 2017 08:38:40 +0000 (10:38 +0200)] 
Update openssl configure tests.

7 years agoexamples: convert nettle-benchmark to use openssl EVP APIs
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>
8 years agoFix for in-place ecc_add_eh.
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.

8 years agoChangeLog entries for previous two commits.
Niels Möller [Fri, 9 Jun 2017 20:49:00 +0000 (22:49 +0200)] 
ChangeLog entries for previous two commits.

8 years agoTest case for pss signature problem.
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.

8 years agoFix assertion failure in pss signature verification.
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.

8 years agoRework make targets related to test-rules.
Niels Möller [Wed, 7 Jun 2017 18:31:59 +0000 (20:31 +0200)] 
Rework make targets related to test-rules.

8 years agoAdd srcdir prefix to .test-rules.make target.
Niels Möller [Sat, 20 May 2017 19:57:07 +0000 (21:57 +0200)] 
Add srcdir prefix to .test-rules.make target.

8 years agotestsuite/Makefile.in: ensure .test-rules.make is regenerated
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>
8 years agohogweed-benchmark: eliminated memory leak
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>
8 years ago_aes_set_key: ensure with assert() that nk is non-zero
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>
8 years ago.gitlab-ci.yml: added static analyzers run
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>
8 years ago.gitlab-ci.yml: ubsan use fedora25
Nikos Mavrogiannopoulos [Tue, 16 May 2017 11:14:46 +0000 (13:14 +0200)] 
.gitlab-ci.yml: ubsan use fedora25

8 years ago.gitlab-ci.yml: use asan from fedora25 instead of centos7
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>
8 years agoMade current contibution rules explicit
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>
8 years agoFix memory leak in dlopen-test.
Niels Möller [Sun, 9 Apr 2017 10:27:23 +0000 (12:27 +0200)] 
Fix memory leak in dlopen-test.

8 years agoDelete valgrind magic in pss-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.

8 years agoAvoid unnecessary memset and xor operations in pss_encode_mgf1. merge-pss
Niels Möller [Tue, 4 Apr 2017 21:13:53 +0000 (23:13 +0200)] 
Avoid unnecessary memset and xor operations in pss_encode_mgf1.

8 years agoUse const for input mpz_t argument to pss_verify_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.

8 years agoChangeLog entries for RSA PSS code.
Niels Möller [Tue, 4 Apr 2017 19:29:36 +0000 (21:29 +0200)] 
ChangeLog entries for RSA PSS code.

8 years agoAdd PSS variants for RSA sign/verify functions
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>
8 years agoImplement PSS encoding functions
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>
8 years agoNew constant NETTLE_MAX_HASH_CONTEXT_SIZE.
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.

8 years agoLet nettle-hash --list display internal 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.

8 years agoMake nettle compile with pre-UAL arm assembler.
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>
8 years agoChangeLog entry for previous commit.
Niels Möller [Tue, 3 Jan 2017 17:38:49 +0000 (18:38 +0100)] 
ChangeLog entry for previous commit.

8 years agoecdsa_verify: eliminated memory leak on error path
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 12:54:16 +0000 (13:54 +0100)] 
ecdsa_verify: eliminated memory leak on error path

8 years agoUse const for _nettle_write_* source argument.
Niels Möller [Mon, 10 Oct 2016 09:25:02 +0000 (11:25 +0200)] 
Use const for _nettle_write_* source argument.

8 years agoNote release. nettle_3.3_release_20161001
Niels Möller [Sat, 1 Oct 2016 07:27:27 +0000 (09:27 +0200)] 
Note release.

8 years agoTweak NEWS entry.
Niels Möller [Sat, 1 Oct 2016 07:25:28 +0000 (09:25 +0200)] 
Tweak NEWS entry.

8 years agoUpdated NEWS file.
Niels Möller [Tue, 27 Sep 2016 05:23:45 +0000 (07:23 +0200)] 
Updated NEWS file.

8 years agoFix a few minor documentation typos.
Niels Möller [Wed, 21 Sep 2016 05:04:46 +0000 (07:04 +0200)] 
Fix a few minor documentation typos.

8 years agoUpdated testing status.
Niels Möller [Mon, 19 Sep 2016 19:15:41 +0000 (21:15 +0200)] 
Updated testing status.

8 years agoFix ECDSA broken node links. Reported by Nick Alcock.
Niels Möller [Mon, 19 Sep 2016 19:14:27 +0000 (21:14 +0200)] 
Fix ECDSA broken node links. Reported by Nick Alcock.

8 years agoUse gitlab.com's shared runners
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

8 years agoTrivial merge.
Niels Möller [Tue, 13 Sep 2016 20:46:43 +0000 (22:46 +0200)] 
Trivial merge.

8 years agoUpdate release plan.
Niels Möller [Tue, 13 Sep 2016 20:44:41 +0000 (22:44 +0200)] 
Update release plan.

8 years agoAdd SHA3 hashes to nettle_hashes. Reported by Thomas Walter.
Niels Möller [Tue, 13 Sep 2016 20:32:28 +0000 (22:32 +0200)] 
Add SHA3 hashes to nettle_hashes. Reported by Thomas Walter.

8 years agoMention memeql_sec in NEWS.
Niels Möller [Wed, 7 Sep 2016 20:08:31 +0000 (22:08 +0200)] 
Mention memeql_sec in NEWS.

8 years agoDocument memeql_sec.
Niels Möller [Wed, 7 Sep 2016 20:06:43 +0000 (22:06 +0200)] 
Document memeql_sec.

8 years agodoc: Split Elliptic curves into sub-nodes.
Niels Möller [Wed, 7 Sep 2016 20:05:30 +0000 (22:05 +0200)] 
doc: Split Elliptic curves into sub-nodes.

8 years agoFix documentation typo.
Niels Möller [Wed, 7 Sep 2016 20:03:08 +0000 (22:03 +0200)] 
Fix documentation typo.

8 years agoUpdate date.
Niels Möller [Tue, 6 Sep 2016 18:51:08 +0000 (20:51 +0200)] 
Update date.

8 years agoUpdate NEWS for 3.3.
Niels Möller [Tue, 6 Sep 2016 05:13:46 +0000 (07:13 +0200)] 
Update NEWS for 3.3.

8 years agoUpdate package versions.
Niels Möller [Tue, 6 Sep 2016 05:10:03 +0000 (07:10 +0200)] 
Update package versions.

8 years agoUpdate release plan.
Niels Möller [Tue, 6 Sep 2016 05:08:26 +0000 (07:08 +0200)] 
Update release plan.

8 years agoTest for memeql_sec.
Niels Möller [Sat, 3 Sep 2016 11:59:02 +0000 (13:59 +0200)] 
Test for memeql_sec.

8 years agoNew public function memeql_sec, declared in memops.h.
Niels Möller [Sat, 3 Sep 2016 11:36:32 +0000 (13:36 +0200)] 
New public function memeql_sec, declared in memops.h.

8 years agoAdd Curve 25519 to concept index.
Niels Möller [Mon, 5 Sep 2016 13:19:17 +0000 (15:19 +0200)] 
Add Curve 25519 to concept index.

8 years agoDefine NETTLE_CURVE25519_RFC7748, and document it.
Niels Möller [Mon, 5 Sep 2016 13:17:19 +0000 (15:17 +0200)] 
Define NETTLE_CURVE25519_RFC7748, and document it.

8 years agoDelete no longer used .p$(OBJEXT) from make .SUFFIXES.
Niels Möller [Sat, 3 Sep 2016 20:41:19 +0000 (22:41 +0200)] 
Delete no longer used .p$(OBJEXT) from make .SUFFIXES.

8 years agoPrune a few trailing spaces.
Niels Möller [Sat, 3 Sep 2016 20:33:35 +0000 (22:33 +0200)] 
Prune a few trailing spaces.

8 years agoDelete macro TOKEN_CHAR from public header sexp.h.
Niels Möller [Sat, 3 Sep 2016 20:31:58 +0000 (22:31 +0200)] 
Delete macro TOKEN_CHAR from public header sexp.h.

8 years agoDelete an unused function.
Niels Möller [Sat, 3 Sep 2016 19:22:06 +0000 (21:22 +0200)] 
Delete an unused function.

8 years agoFix pointer signedness warning in sexp-conv.
Niels Möller [Sat, 3 Sep 2016 18:16:25 +0000 (20:16 +0200)] 
Fix pointer signedness warning in sexp-conv.

8 years agoFix some warnigns for nettle-hash and nettle-pbkdf.
Niels Möller [Sat, 3 Sep 2016 18:10:28 +0000 (20:10 +0200)] 
Fix some warnigns for nettle-hash and nettle-pbkdf.

8 years agoFix pointer signedness warning in nettle-lfib-stream.
Niels Möller [Sat, 3 Sep 2016 18:00:57 +0000 (20:00 +0200)] 
Fix pointer signedness warning in nettle-lfib-stream.

8 years agoFix pointer sign warnings for sexp-format-test.
Niels Möller [Sat, 3 Sep 2016 14:41:22 +0000 (16:41 +0200)] 
Fix pointer sign warnings for sexp-format-test.

8 years agoFix pointer sign warnings for test_armor.
Niels Möller [Sat, 3 Sep 2016 14:31:40 +0000 (16:31 +0200)] 
Fix pointer sign warnings for test_armor.

8 years agoFix pointed signedness warning in yarrow-test.
Niels Möller [Sat, 3 Sep 2016 14:14:09 +0000 (16:14 +0200)] 
Fix pointed signedness warning in yarrow-test.

8 years agoUpdate to use const char * for sexp_iterator_assoc.
Niels Möller [Sat, 3 Sep 2016 14:12:40 +0000 (16:12 +0200)] 
Update to use const char * for sexp_iterator_assoc.

8 years agoFix pointed signedness warnings in md5-compat-test.
Niels Möller [Sat, 3 Sep 2016 14:07:56 +0000 (16:07 +0200)] 
Fix pointed signedness warnings in md5-compat-test.

8 years agoUse LDATA macro for more constants.
Niels Möller [Sat, 3 Sep 2016 14:04:02 +0000 (16:04 +0200)] 
Use LDATA macro for more constants.

8 years agoMacro to convert string literals to unsigned.
Niels Möller [Sat, 3 Sep 2016 13:54:46 +0000 (15:54 +0200)] 
Macro to convert string literals to unsigned.

8 years agoFix signedness warning for rsa-encrypt-test.
Niels Möller [Sat, 3 Sep 2016 12:11:40 +0000 (14:11 +0200)] 
Fix signedness warning for rsa-encrypt-test.

8 years agoFix pointer sign warnings in sexp_vformat.
Niels Möller [Mon, 29 Aug 2016 16:31:15 +0000 (18:31 +0200)] 
Fix pointer sign warnings in sexp_vformat.

8 years agoUse uint8_t for hash_file buffer.
Niels Möller [Tue, 16 Aug 2016 05:37:50 +0000 (07:37 +0200)] 
Use uint8_t for hash_file buffer.

8 years agoFix error in ChangeLog.
Niels Möller [Tue, 16 Aug 2016 05:34:08 +0000 (07:34 +0200)] 
Fix error in ChangeLog.

8 years agoUse const char * for sexp expression types.
Niels Möller [Tue, 16 Aug 2016 05:28:23 +0000 (07:28 +0200)] 
Use const char * for sexp expression types.

8 years agoFix signedness warning in rsa_keypair_to_openpgp.
Niels Möller [Tue, 16 Aug 2016 05:06:43 +0000 (07:06 +0200)] 
Fix signedness warning in rsa_keypair_to_openpgp.

8 years agoNew pgp-encode helper function, write_string.
Niels Möller [Tue, 16 Aug 2016 05:01:21 +0000 (07:01 +0200)] 
New pgp-encode helper function, write_string.

8 years agoRename write_string --> write_date.
Niels Möller [Tue, 16 Aug 2016 04:45:51 +0000 (06:45 +0200)] 
Rename write_string --> write_date.

Change type of input data to const void *, for this function and
write_file.

9 years agoHelper hash_string: Delete length argument.
Niels Möller [Fri, 5 Aug 2016 09:05:02 +0000 (11:05 +0200)] 
Helper hash_string: Delete length argument.

9 years agohogweed-benchmark: Use uint8_t for curve25519 values.
Niels Möller [Fri, 5 Aug 2016 09:00:30 +0000 (11:00 +0200)] 
hogweed-benchmark: Use uint8_t for curve25519 values.

9 years agoUse uint8_t for sexp strings.
Niels Möller [Fri, 5 Aug 2016 08:54:54 +0000 (10:54 +0200)] 
Use uint8_t for sexp strings.

9 years agoHelper read_file: Use size_t for sizes, and uint8_t for the contents.
Niels Möller [Fri, 5 Aug 2016 08:42:24 +0000 (10:42 +0200)] 
Helper read_file: Use size_t for sizes, and uint8_t for the contents.

9 years agoCheck for invalid keys, with even p, in dsa_sign.
Niels Möller [Thu, 4 Aug 2016 08:22:26 +0000 (10:22 +0200)] 
Check for invalid keys, with even p, in dsa_sign.

9 years agoReject invalid keys, with even moduli, in rsa_compute_root_tr.
Niels Möller [Thu, 4 Aug 2016 08:18:23 +0000 (10:18 +0200)] 
Reject invalid keys, with even moduli, in rsa_compute_root_tr.

9 years agoReject invalid RSA keys with even modulo.
Niels Möller [Sun, 31 Jul 2016 08:32:22 +0000 (10:32 +0200)] 
Reject invalid RSA keys with even modulo.

9 years agoMerge branch 'powm_sec'
Niels Möller [Sat, 16 Jul 2016 20:07:45 +0000 (22:07 +0200)] 
Merge branch 'powm_sec'

9 years agoDelete code for supporting GMP older than 5.0.
Niels Möller [Wed, 13 Jul 2016 20:15:29 +0000 (22:15 +0200)] 
Delete code for supporting GMP older than 5.0.

9 years agoChangeLog update.
Niels Möller [Tue, 12 Jul 2016 20:50:22 +0000 (22:50 +0200)] 
ChangeLog update.

9 years agoFix typo breaking mini-gmp build.
Niels Möller [Tue, 12 Jul 2016 20:40:17 +0000 (22:40 +0200)] 
Fix typo breaking mini-gmp build.

9 years agoFix configure check for mpz_powm_sec.
Niels Möller [Tue, 12 Jul 2016 20:38:07 +0000 (22:38 +0200)] 
Fix configure check for mpz_powm_sec.

9 years agoUse mpz_powm_sec.
Niels Möller [Mon, 20 Jun 2016 18:04:56 +0000 (20:04 +0200)] 
Use mpz_powm_sec.

9 years agoAdd FIXME comment.
Niels Möller [Mon, 20 Jun 2016 05:11:34 +0000 (07:11 +0200)] 
Add FIXME comment.

9 years agoUpdated nettle-3.3 plan.
Niels Möller [Tue, 10 May 2016 19:36:04 +0000 (21:36 +0200)] 
Updated nettle-3.3 plan.

9 years agoMerge branch 'curve25519-rfc7748'
Niels Möller [Mon, 2 May 2016 20:27:18 +0000 (22:27 +0200)] 
Merge branch 'curve25519-rfc7748'

9 years agoUpdate Curve25519 documentation.
Niels Möller [Mon, 2 May 2016 20:20:30 +0000 (22:20 +0200)] 
Update Curve25519 documentation.

9 years agoAdd tests for ignored curve25519 input bits.
Niels Möller [Mon, 2 May 2016 19:44:27 +0000 (21:44 +0200)] 
Add tests for ignored curve25519 input bits.

9 years agoUpdate curve25519_mul, to align with RFC 7748.
Niels Möller [Mon, 25 Apr 2016 19:48:52 +0000 (21:48 +0200)] 
Update curve25519_mul, to align with RFC 7748.

9 years agoChangeLog update.
Niels Möller [Wed, 30 Mar 2016 17:29:23 +0000 (19:29 +0200)] 
ChangeLog update.

9 years agoCorrected the name of the windows dll files
Nikos Mavrogiannopoulos [Thu, 18 Feb 2016 10:03:25 +0000 (11:03 +0100)] 
Corrected the name of the windows dll files

The new name doesn't include the minor number and thus
allows to replace with a minor update of the library.

9 years agotwofish: Fix undefined shift.
Niels Möller [Tue, 15 Mar 2016 19:41:14 +0000 (20:41 +0100)] 
twofish: Fix undefined shift.

9 years agoblowfish: Use READ_UINT32 macro.
Niels Möller [Tue, 15 Mar 2016 19:37:35 +0000 (20:37 +0100)] 
blowfish: Use READ_UINT32 macro.

9 years agoChangeLog update.
Niels Möller [Tue, 15 Mar 2016 19:30:30 +0000 (20:30 +0100)] 
ChangeLog update.

9 years ago.gitlab-ci.yml: enhance with mini-gmp builds
Nikos Mavrogiannopoulos [Thu, 10 Mar 2016 16:45:07 +0000 (17:45 +0100)] 
.gitlab-ci.yml: enhance with mini-gmp builds

9 years agoconfigure: export mp_ symbols when compiling with mini-gmp
Nikos Mavrogiannopoulos [Thu, 10 Mar 2016 16:44:08 +0000 (17:44 +0100)] 
configure: export mp_ symbols when compiling with mini-gmp

This addresses build issue when compiling with --enable-mini-gmp
and the symbol script being used.