Preparing for Nettle-3.9

2023-05-07 Thread Niels Möller
Hi,

I would like to get Nettle-3.9 out (as well as any bugfix update 3.9.1
if needed) before summer. I've written the NEWS entries for 3.9 and
pushed the commits with version updates. See current NEWS draft below.

I would much appreciate 

* Testing, in particular on systems not covered by the gitlab CI (e.g,
  bsd, macos, windows).

* Review of the NEWS file. It's based on my reading of ChangeLog, but if
  you're aware of contributions or notable changes not listed, let me
  know.

* Say if there's any ongoing work that you think ought to be included in
  this release. (I'd prefer to not delay the release for the ongoing
  work that I amm aware of).

If there are no show-stoppers, I may make the release as soon as this
Wednesday evening (May 10, and for me, evening starts around 17 UTC).
That means, that if you want to help out with testing or review or
anything else related to the release, but, very understandably, can't do
that by Wednesday, just let me know your plans before Wednesday so we
can coordinate.

Regards,
/Niels

NEWS for the Nettle 3.9 release

This release includes bug fixes, several new features, a few
performance improvements, and one performance regression
affecting GCM on certain platforms.

The new version is intended to be fully source and binary
compatible with Nettle-3.6. The shared library names are
libnettle.so.8.7 and libhogweed.so.6.7, with sonames
libnettle.so.8 and libhogweed.so.6.

This release includes a rewrite of the C implementation of
GHASH (dating from 2011), as well as the plain x86_64 assembly
version, to use precomputed tables in a different way, with
tables always accessed in the same sequential manner.

This should make Nettle's GHASH implementation side-channel
silent on all platforms, but considerably slower on platforms
without carry-less mul instructions. E.g., benchmarks of the C
implementation on x86_64 showed a slowdown of 3 times.

Bug fixes:

* Fix bug in ecdsa and gostdsa signature verify operation, for
  the unlikely corner case that point addition really is point
  duplication.

* Fix for chacha on Power7, nettle's assembly used an
  instruction only available on later processors. Fixed by
  Mamone Tarsha.

* GHASH implementation should now be side-channel silent on
  all architectures.

* A few portability fixes for *BSD.

New features:

* Support for the SM4 block cipher, contributed by Tianjia
  Zhang.

* Support for the Balloon password hash, contributed by Zoltan
  Fridrich.

* Support for SIV-GCM authenticated encryption mode,
  contributed by Daiki Ueno.

* Support for OCB authenticated encryption mode.

* New exported functions md5_compress, sha1_compress,
  sha256_compress, sha512_compress, based on patches from
  Corentin Labbe.

Optimizations:

* Improved sha256 performance, in particular for x86_64 and
  s390x.

* Use GMP's mpn_sec_tabselect, which is implemented in
  assembly on many platforms, and delete the similar nettle
  function. Gives a modest speedup to all ecc operations.

* Faster poly1305 for x86_64 and ppc64. New ppc code
  contributed by Mamone Tarsha.

Miscellaneous:

* New ASM_FLAGS variable recognized by configure.

* Delete all arcfour assembly code. Affects 32-bit x86, 32-bit
  and 64-bit sparc.

-- 
Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.

___
nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se
To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se


Re: Undefined reference with clang16 and address sanitizer

2023-05-07 Thread Niels Möller
Noah Watkins  writes:

> (fwiw sanitizer does report a memory leak when eccdata is
> running at the end of make).
 
If it looks like the sanitizer could be right, can you share the error
report?

Regards,
/Niels

-- 
Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.
___
nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se
To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se