Hi Андрей,

On Tue, Feb 18, 2020 at 02:28:50AM +0300, Андрей Аладьев wrote:

> Hello, please see the following gnutls issue
> https://gitlab.com/gnutls/gnutls/issues/941.

> Nettle today is working on aarch64, aarch64_be and arm, but broken on armeb.

Nice to see that someone other than me is doing armeb. :)

> FAIL: chacha
> FAIL: memxor
> FAIL: ccm
> FAIL: pss
> FAIL: rsa-pss-sign-tr

The asm for arm certainly needed adjustment to work on armeb. See
https://lists.lysator.liu.se/pipermail/nettle-bugs/2018/007280.html.

> So it looks like armeb is completely broken today.

I have had this running on actual armeb hardware with nettle-3.4 and 3.5
for a couple of years and there are no issues with the testsuite or in
production.

configure: summary of build options:

  Version:           nettle 3.5.1
  Host type:         armv7veb-unknown-linux-gnueabihf
  ABI:               standard
  Assembly files:    arm/v6 arm
  Install prefix:    /usr
  Library directory: /usr/lib
  Compiler:          armv7veb-unknown-linux-gnueabihf-gcc
  Static libraries:  no
  Shared libraries:  yes
  Public key crypto: yes
  Using mini-gmp:    no
  Documentation:     no

Linux b 5.5.2-gentoo-r1 #1 SMP Wed Feb 5 22:52:04 CET 2020
armv7b ARMv7 Processor rev 4 (v7b) Allwinner sun7i (A20) Family
GNU/Linux

LD_LIBRARY_PATH=../.lib PATH="../.lib:$PATH" DYLD_LIBRARY_PATH=../.lib \
  srcdir="/var/tmp/portage/dev-libs/nettle-3.5.1/work/nettle-3.5.1/testsuite"
\
  EMULATOR="" NM="armv7veb-unknown-linux-gnueabihf-nm" EXEEXT="" \
          /var/tmp/portage/dev-libs/nettle-3.5.1/work/nettle-3.5.1/run-tests
[...]
PASS: aes
[...]
PASS: chacha
[...]
PASS: memxor
[...]
PASS: ccm
[...]
PASS: pss
PASS: rsa-sign-tr
PASS: pss-mgf1
PASS: rsa-pss-sign-tr
[...]
PASS: nettle-pbkdf2
armv7veb-unknown-linux-gnueabihf-nm: '../libnettle.a': No such file
armv7veb-unknown-linux-gnueabihf-nm: '../libnettle.a': No such file
PASS: symbols
PASS: dlopen
===================
All 99 tests passed
===================

@Niels: Sorry for falling off the face of the earth after the CI
extravaganza. I hadn't even noticed that armeb made it into
nettle-3.5. A working version just fell out of the package manager.
Let me know if there are any outstanding issues regarding armeb and I'll
look into them.

BTW: libressl recently added arm optimized asm and now poses the same
problem for armeb.
-- 
Micha
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to