]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
7 years ago.gitlab-ci.yml: added cross compilation and tests on mips/aarch64/arm
Nikos Mavrogiannopoulos [Tue, 10 Jul 2018 18:58:36 +0000 (20:58 +0200)] 
.gitlab-ci.yml: added cross compilation and tests on mips/aarch64/arm

This utilizes the qemu-user system used by gnutls. This also
deprecates the previous aarch64 build.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoFix arm fat setup for nettle_sha1_compress.
Niels Möller [Thu, 12 Jul 2018 08:24:00 +0000 (10:24 +0200)] 
Fix arm fat setup for nettle_sha1_compress.

7 years ago.gitlab-ci.yml: updated build images to latest used by gnutls
Nikos Mavrogiannopoulos [Mon, 9 Jul 2018 06:44:09 +0000 (08:44 +0200)] 
.gitlab-ci.yml: updated build images to latest used by gnutls

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoFix x86_64 fat setup for nettle_sha1_compress.
Niels Möller [Sun, 8 Jul 2018 07:57:04 +0000 (09:57 +0200)] 
Fix x86_64 fat setup for nettle_sha1_compress.

7 years ago.gitlab-ci.yml: link with shared library on x86-64 build
Nikos Mavrogiannopoulos [Tue, 12 Jun 2018 11:26:00 +0000 (13:26 +0200)] 
.gitlab-ci.yml: link with shared library on x86-64 build

This allows testing whether exported symbols are sufficient for the
included test suite.

7 years agoAdd two missing includes of the new internal headers.
Niels Möller [Sat, 7 Jul 2018 20:10:41 +0000 (22:10 +0200)] 
Add two missing includes of the new internal headers.

7 years agoChangeLog for previous change.
Niels Möller [Sat, 7 Jul 2018 20:10:03 +0000 (22:10 +0200)] 
ChangeLog for previous change.

7 years agoabi: explicitly export intended symbols and hide others
Nikos Mavrogiannopoulos [Wed, 6 Jun 2018 13:17:00 +0000 (15:17 +0200)] 
abi: explicitly export intended symbols and hide others

This adds all exported symbols in the map files explicitly under
the following rules:
 - Symbols mentioned in internal headers go in a section which is
   valid only for testing, and linking with these symbols will break
   in library updates.
 - Symbols mentioned in installed headers go in the exported sections
   and are considered part of the ABI.
 - All internal symbols move to internal headers.
 - The _nettle_md5_compress and _nettle_sha1_compress become exported
   without the _nettle prefix, due to existing usage.

7 years agoComment fix.
Niels Möller [Sat, 7 Jul 2018 19:24:26 +0000 (21:24 +0200)] 
Comment fix.

7 years agoChangeLog entry for previous change.
Niels Möller [Sun, 17 Jun 2018 17:29:12 +0000 (19:29 +0200)] 
ChangeLog entry for previous change.

7 years agoFix quoting in autoconf ifunc test
Dmitry Eremin-Solenikov [Wed, 13 Jun 2018 09:41:40 +0000 (12:41 +0300)] 
Fix quoting in autoconf ifunc test

* aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that
  AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agotestsuite/symbols-test: Exclude ____chkstk_darwin symbols.
Dominyk Tiller [Sun, 17 Jun 2018 17:20:09 +0000 (19:20 +0200)] 
testsuite/symbols-test: Exclude ____chkstk_darwin symbols.

These are produced by Apple's Xcode 10 compiler.

7 years agoMerge branch 'rename-data-symbols' into master-updates
Niels Möller [Tue, 27 Mar 2018 21:07:50 +0000 (23:07 +0200)] 
Merge branch 'rename-data-symbols' into master-updates

7 years agoUpdate NEWS file.
Niels Möller [Sun, 25 Mar 2018 20:29:25 +0000 (22:29 +0200)] 
Update NEWS file.

7 years agoChangeLog entries for ARM big-endian changes.
Niels Möller [Sun, 25 Mar 2018 09:42:48 +0000 (11:42 +0200)] 
ChangeLog entries for ARM big-endian changes.

7 years agoDocument arm endianness considerations
Michael Weiser [Tue, 13 Feb 2018 21:13:14 +0000 (22:13 +0100)] 
Document arm endianness considerations

Extend arm/README to provide some background on considerations to be taken into
account when writing assembly routines supposed to work in big and little memory
endianness.

7 years agoSupport big-endian arm in assembly code
Michael Weiser [Tue, 13 Feb 2018 21:13:13 +0000 (22:13 +0100)] 
Support big-endian arm in assembly code

Adjust sha1-compress, sha256-compress, umac-nh, chacha-core-internal,
salsa20-core-internal and memxor for arm to work in big-endian mode.

7 years agoAdd arm endianness-aware assembly infrastructure
Michael Weiser [Tue, 13 Feb 2018 21:13:12 +0000 (22:13 +0100)] 
Add arm endianness-aware assembly infrastructure

Introduce m4 macros to conditionally handle differences of little- and
big-endian arm in assembler code.

7 years agoAdd leading underscore to data symbols. rename-data-symbols
Niels Möller [Sat, 17 Mar 2018 16:25:03 +0000 (17:25 +0100)] 
Add leading underscore to data symbols.

7 years agoUpdate NEWS file.
Niels Möller [Wed, 14 Mar 2018 21:12:32 +0000 (22:12 +0100)] 
Update NEWS file.

7 years agoMerge branch 'ecc-params-tweak' into master-updates
Niels Möller [Wed, 14 Mar 2018 18:25:42 +0000 (19:25 +0100)] 
Merge branch 'ecc-params-tweak' into master-updates

7 years agoMerge branch 'x86_64-sha_ni-sha256'
Niels Möller [Wed, 14 Mar 2018 18:21:33 +0000 (19:21 +0100)] 
Merge branch 'x86_64-sha_ni-sha256'

7 years agoSupport sha_ni sha256_compress in x86_64 fat builds. x86_64-sha_ni-sha256
Niels Möller [Sun, 11 Mar 2018 21:23:59 +0000 (22:23 +0100)] 
Support sha_ni sha256_compress in x86_64 fat builds.

7 years agoTweak parameters for ecc tables. ecc-params-tweak
Niels Möller [Sat, 10 Mar 2018 17:12:42 +0000 (18:12 +0100)] 
Tweak parameters for ecc tables.

7 years agoMake eccdata warn about poor parameters.
Niels Möller [Sat, 10 Mar 2018 15:44:43 +0000 (16:44 +0100)] 
Make eccdata warn about poor parameters.

7 years agoNew program eccparams.
Niels Möller [Sat, 10 Mar 2018 14:50:34 +0000 (15:50 +0100)] 
New program eccparams.

7 years agoMerge branch 'cmac-support'
Niels Möller [Wed, 21 Feb 2018 22:07:31 +0000 (23:07 +0100)] 
Merge branch 'cmac-support'

7 years agoNew sha256 implementation using sha_ni instructions.
Niels Möller [Wed, 21 Feb 2018 22:04:44 +0000 (23:04 +0100)] 
New sha256 implementation using sha_ni instructions.

7 years agoUpdate CBC and CFB tests to use aes256_ctx, not the deprecated aes_ctx.
Niels Möller [Tue, 20 Feb 2018 21:48:15 +0000 (22:48 +0100)] 
Update CBC and CFB tests to use aes256_ctx, not the deprecated aes_ctx.

7 years ago(test_cmac_hash): Deallocate ctx properly. cmac-support
Niels Möller [Tue, 20 Feb 2018 21:41:37 +0000 (22:41 +0100)] 
(test_cmac_hash): Deallocate ctx properly.

7 years agoUpdate RSA examples to use aes256_ctx, not the deprecated aes_ctx.
Niels Möller [Tue, 20 Feb 2018 18:31:41 +0000 (19:31 +0100)] 
Update RSA examples to use aes256_ctx, not the deprecated aes_ctx.

7 years agoDelete unused struct process_ctx.
Niels Möller [Tue, 20 Feb 2018 18:20:34 +0000 (19:20 +0100)] 
Delete unused struct process_ctx.

7 years agoMostly aesthetic changes to CMAC.
Niels Möller [Mon, 19 Feb 2018 21:25:18 +0000 (22:25 +0100)] 
Mostly aesthetic changes to CMAC.

7 years agoAdd ChangeLog entries for CMAC.
Niels Möller [Mon, 19 Feb 2018 21:07:59 +0000 (22:07 +0100)] 
Add ChangeLog entries for CMAC.

7 years agoReindent CMAC code to GNU standard, white space changes only.
Niels Möller [Mon, 19 Feb 2018 20:42:39 +0000 (21:42 +0100)] 
Reindent CMAC code to GNU standard, white space changes only.

7 years agoAdded support for CMAC
Nikos Mavrogiannopoulos [Wed, 10 Jan 2018 08:29:17 +0000 (09:29 +0100)] 
Added support for CMAC

That adds support for CMAC as a generic framework for
128-bit block and key ciphers, as well as API for AES-128-CMAC,
and AES-256-CMAC.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoNew macros TMP_DECL_ALIGN and TMP_ALLOC_ALIGN.
Niels Möller [Mon, 19 Feb 2018 18:23:40 +0000 (19:23 +0100)] 
New macros TMP_DECL_ALIGN and TMP_ALLOC_ALIGN.

7 years agoFix link failure for pss-mgf1-test, in non-hogweed builds.
Niels Möller [Sun, 18 Feb 2018 09:18:00 +0000 (10:18 +0100)] 
Fix link failure for pss-mgf1-test, in non-hogweed builds.

7 years agoChangeLog for previous change.
Niels Möller [Sun, 18 Feb 2018 09:17:09 +0000 (10:17 +0100)] 
ChangeLog for previous change.

7 years agoMove expressions with side effects out of asserts
Dmitry Eremin-Solenikov [Sat, 17 Feb 2018 09:57:12 +0000 (12:57 +0300)] 
Move expressions with side effects out of asserts

It is wrong to use expressions with side-effects in asserts, they can
easily be compiled away. Move them out of assert() macro and just
compare the result.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoChangeLog for previous changes.
Niels Möller [Sat, 17 Feb 2018 09:22:12 +0000 (10:22 +0100)] 
ChangeLog for previous changes.

7 years agoEnable OpenSSL AES-GCM in nettle-benchmark
Dmitry Eremin-Solenikov [Tue, 12 Dec 2017 00:54:38 +0000 (03:54 +0300)] 
Enable OpenSSL AES-GCM in nettle-benchmark

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoProvide wrappers around OpenSSL AES GCM
Dmitry Eremin-Solenikov [Tue, 12 Dec 2017 00:54:37 +0000 (03:54 +0300)] 
Provide wrappers around OpenSSL AES GCM

For benchmarking purposes provide wrappers around OpenSSL AES GCM
implementation. Note, digest callback will work only for encryption due
to OpenSSL internals.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoImproved index entries in the manual.
Niels Möller [Fri, 16 Feb 2018 07:38:11 +0000 (08:38 +0100)] 
Improved index entries in the manual.

7 years agoUpdate CAST128/CAST5 docs. Inconsistencies spotted by Henrik Rindlöw.
Niels Möller [Fri, 16 Feb 2018 07:14:22 +0000 (08:14 +0100)] 
Update CAST128/CAST5 docs. Inconsistencies spotted by Henrik Rindlöw.

7 years agoStarted on NEWS entries for Nettle-3.5.
Niels Möller [Mon, 12 Feb 2018 22:17:16 +0000 (23:17 +0100)] 
Started on NEWS entries for Nettle-3.5.

7 years agoNew configure option --enable-x86-sha-ni. x86_64-sha_ni-sha1
Niels Möller [Sat, 10 Feb 2018 20:16:06 +0000 (21:16 +0100)] 
New configure option --enable-x86-sha-ni.

7 years agoSupport sha_ni sha1_compress in x86_64 fat builds.
Niels Möller [Thu, 8 Feb 2018 16:10:13 +0000 (17:10 +0100)] 
Support sha_ni sha1_compress in x86_64 fat builds.

7 years agoAdd missing pshufd.
Niels Möller [Wed, 7 Feb 2018 05:42:08 +0000 (06:42 +0100)] 
Add missing pshufd.

7 years agoNew sha1 implementation using x86_64 sha_ni instructions.
Niels Möller [Mon, 5 Feb 2018 20:46:39 +0000 (21:46 +0100)] 
New sha1 implementation using x86_64 sha_ni instructions.

7 years agoCheck for x86_64 sha_ni extension.
Niels Möller [Mon, 5 Feb 2018 17:28:24 +0000 (18:28 +0100)] 
Check for x86_64 sha_ni extension.

7 years agoci: Fix yaml error. gcm-ctr-opt
Niels Möller [Mon, 5 Feb 2018 19:34:12 +0000 (20:34 +0100)] 
ci: Fix yaml error.

7 years agoci: Fix collection of logs from gnutls test builds.
Niels Möller [Mon, 5 Feb 2018 17:14:48 +0000 (18:14 +0100)] 
ci: Fix collection of logs from gnutls test builds.

7 years agoci: Save logs from gnutls test builds.
Niels Möller [Sat, 3 Feb 2018 07:15:45 +0000 (08:15 +0100)] 
ci: Save logs from gnutls test builds.

7 years agogcm: use ctr_crypt16() for improved performance
Nikos Mavrogiannopoulos [Thu, 1 Feb 2018 19:53:35 +0000 (20:53 +0100)] 
gcm: use ctr_crypt16() for improved performance

7 years agoGeneralize _ctr_crypt16, so it can be used also for gcm.
Niels Möller [Thu, 1 Feb 2018 19:27:33 +0000 (20:27 +0100)] 
Generalize _ctr_crypt16, so it can be used also for gcm.

7 years agoLine break fix.
Niels Möller [Thu, 1 Feb 2018 19:22:17 +0000 (20:22 +0100)] 
Line break fix.

7 years agoMakefile tweak, make clean should not delete desdata.stamp.
Niels Möller [Tue, 30 Jan 2018 19:09:41 +0000 (20:09 +0100)] 
Makefile tweak, make clean should not delete desdata.stamp.

7 years agoChangeLog entry for previous change, by Jay Foad.
Niels Möller [Tue, 30 Jan 2018 19:07:44 +0000 (20:07 +0100)] 
ChangeLog entry for previous change, by Jay Foad.

7 years agoFix parallel make failures trying to build desdata twice simultaneously.
Jay Foad [Wed, 24 Jan 2018 10:43:41 +0000 (10:43 +0000)] 
Fix parallel make failures trying to build desdata twice simultaneously.

7 years agoRecognize "x86" as cpu name.
Niels Möller [Tue, 23 Jan 2018 20:00:44 +0000 (21:00 +0100)] 
Recognize "x86" as cpu name.

* configure.ac (asm_path): Recognize "x86", in addition to "i?86",
for 32-bit x86 processors. Reportedly needed for x86 android builds.

7 years agoChangeLog entries for CFB8.
Niels Möller [Sat, 20 Jan 2018 11:00:59 +0000 (12:00 +0100)] 
ChangeLog entries for CFB8.

7 years agoWhitespace fix.
Niels Möller [Sat, 20 Jan 2018 10:55:50 +0000 (11:55 +0100)] 
Whitespace fix.

7 years agoAdd CFB8 - Cipher Feedback 8-bit block cipher mode
Dmitry Eremin-Solenikov [Wed, 17 Jan 2018 14:17:18 +0000 (17:17 +0300)] 
Add CFB8 - Cipher Feedback 8-bit block cipher mode

Add CFB variant with 8-bit segment size.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoAdd "fall through" comment.
Niels Möller [Tue, 16 Jan 2018 21:50:28 +0000 (22:50 +0100)] 
Add "fall through" comment.

7 years agotools/pkcs1-conv.c: Add missing break statements.
Niels Möller [Tue, 16 Jan 2018 21:49:37 +0000 (22:49 +0100)] 
tools/pkcs1-conv.c: Add missing break statements.

7 years agoMerge branch 'ctr-opt' into master-updates
Niels Möller [Sun, 14 Jan 2018 08:21:11 +0000 (09:21 +0100)] 
Merge branch 'ctr-opt' into master-updates

7 years agoAllow user to specify multiple algorithms to nettle-benchmark
Dmitry Eremin-Solenikov [Tue, 12 Dec 2017 01:01:22 +0000 (04:01 +0300)] 
Allow user to specify multiple algorithms to nettle-benchmark

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoCTR mode optimizations for 16-byte block size. ctr-opt
Niels Möller [Mon, 8 Jan 2018 21:28:52 +0000 (22:28 +0100)] 
CTR mode optimizations for 16-byte block size.

7 years agoExtend nettle_block16 with uint64_t field.
Niels Möller [Mon, 8 Jan 2018 21:22:10 +0000 (22:22 +0100)] 
Extend nettle_block16 with uint64_t field.

7 years agoConfigure check for __builtin_bswap64.
Niels Möller [Mon, 8 Jan 2018 21:14:54 +0000 (22:14 +0100)] 
Configure check for __builtin_bswap64.

7 years agoNew helper function ctr_fill.
Niels Möller [Mon, 8 Jan 2018 20:11:46 +0000 (21:11 +0100)] 
New helper function ctr_fill.

7 years agoIncrease buffer size for in-place CTR.
Niels Möller [Mon, 8 Jan 2018 07:45:17 +0000 (08:45 +0100)] 
Increase buffer size for in-place CTR.

7 years agoExtended CTR mode tests.
Niels Möller [Tue, 9 Jan 2018 06:31:05 +0000 (07:31 +0100)] 
Extended CTR mode tests.

7 years agoBenchmark in-place operation separately, for cbc_decrypt and ctr_crypt.
Niels Möller [Mon, 8 Jan 2018 07:26:36 +0000 (08:26 +0100)] 
Benchmark in-place operation separately, for cbc_decrypt and ctr_crypt.

7 years agoTweaks for in-place cbc, cfb and gcm.
Niels Möller [Mon, 8 Jan 2018 07:06:18 +0000 (08:06 +0100)] 
Tweaks for in-place cbc, cfb and gcm.

* cbc.c (cbc_decrypt): For in-place operation (src == dst case),
eliminate use of src variable.
* cfb.c (cfb_decrypt): Likewise.
* gcm.c (gcm_crypt): Likewise, and replace one memxor3 by memxor.

7 years agoUnroll x86_64 aesni loops.
Niels Möller [Wed, 3 Jan 2018 18:00:19 +0000 (19:00 +0100)] 
Unroll x86_64 aesni loops.

7 years agoFix version number typo in ChangeLog.
Niels Möller [Tue, 26 Dec 2017 23:09:00 +0000 (00:09 +0100)] 
Fix version number typo in ChangeLog.

7 years agoNote 3.4 release in ChangeLog. nettle_3.4_release_20171119
Niels Möller [Sun, 19 Nov 2017 09:06:15 +0000 (10:06 +0100)] 
Note 3.4 release in ChangeLog.

7 years agoNote mips32 tests of nettle-3.4.
Niels Möller [Sun, 19 Nov 2017 09:03:20 +0000 (10:03 +0100)] 
Note mips32 tests of nettle-3.4.

7 years agoUpdate NEWS with base64 and base16 changes.
Niels Möller [Sun, 19 Nov 2017 08:55:42 +0000 (09:55 +0100)] 
Update NEWS with base64 and base16 changes.

7 years agoAdd missing ChangeLog for base64 changes.
Niels Möller [Sun, 19 Nov 2017 08:52:49 +0000 (09:52 +0100)] 
Add missing ChangeLog for base64 changes.

Dated 2017-08-27.

7 years agoNote sparc tests.
Niels Möller [Wed, 15 Nov 2017 21:52:21 +0000 (22:52 +0100)] 
Note sparc tests.

7 years agoUpdate testing status.
Niels Möller [Tue, 14 Nov 2017 14:29:24 +0000 (15:29 +0100)] 
Update testing status.

7 years agoUpdate check of GMP_NUMB_BITS declaration in assembly files. nettle_3.4rc2
Niels Möller [Sun, 12 Nov 2017 18:25:03 +0000 (19:25 +0100)] 
Update check of GMP_NUMB_BITS declaration in assembly files.

Was broken by rename of configure variable GMP_NUMB_BITS -->
NUMB_BITS.

7 years agoUpdate NEWS file. nettle_3.4rc1
Niels Möller [Sat, 11 Nov 2017 09:16:47 +0000 (10:16 +0100)] 
Update NEWS file.

7 years agoUpdate manual
Niels Möller [Sat, 11 Nov 2017 08:55:55 +0000 (09:55 +0100)] 
Update manual

7 years agoChangeLog entry for previous change.
Niels Möller [Sat, 11 Nov 2017 08:49:07 +0000 (09:49 +0100)] 
ChangeLog entry for previous change.

7 years agoRevert change hiding nettle_secp_256r1 and friends. api-opaque-fix
Niels Möller [Wed, 8 Nov 2017 21:48:53 +0000 (22:48 +0100)] 
Revert change hiding nettle_secp_256r1 and friends.

7 years ago.gitlab-ci.yml: added build with gnutls
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>
7 years ago.gitlab-ci.yml: use pre-installed images for gnutls
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>
7 years agoUpdate release plan.
Niels Möller [Sun, 5 Nov 2017 22:34:35 +0000 (23:34 +0100)] 
Update release plan.

7 years agoUpdate NEWS file, including ABI issue.
Niels Möller [Sun, 5 Nov 2017 22:23:42 +0000 (23:23 +0100)] 
Update NEWS file, including ABI issue.

7 years agoBump version numbers
Niels Möller [Sun, 5 Nov 2017 21:46:29 +0000 (22:46 +0100)] 
Bump version numbers

7 years agoStart on NEWS entries for nettle-3.4.
Niels Möller [Thu, 2 Nov 2017 10:28:51 +0000 (11:28 +0100)] 
Start on NEWS entries for nettle-3.4.

7 years agoMerge branch 'api-opaque' into master-updates
Niels Möller [Sun, 29 Oct 2017 09:09:49 +0000 (10:09 +0100)] 
Merge branch 'api-opaque' into master-updates

7 years agoChangeLog for previous change.
Niels Möller [Mon, 23 Oct 2017 20:41:31 +0000 (22:41 +0200)] 
ChangeLog for previous change.

7 years agoUpdate ChangeLog.
Niels Möller [Mon, 23 Oct 2017 20:35:58 +0000 (22:35 +0200)] 
Update ChangeLog.

7 years agoMerge remote-tracking branch 'origin/master' into api-opaque
Niels Möller [Mon, 23 Oct 2017 20:25:58 +0000 (22:25 +0200)] 
Merge remote-tracking branch 'origin/master' into api-opaque

7 years agoUndo added underscores on public symbols.
Niels Möller [Mon, 23 Oct 2017 20:05:32 +0000 (22:05 +0200)] 
Undo added underscores on public symbols.