This set introduces an optimized powerpc64 assembly implementation for
SHA256 and SHA512. This have been derived from BSD-2-Clause licensed
code authored by IBM, originally released in the IBM POWER
Cryptography Reference Implementation project[1], modified to work in
Nettle, contributed under the GPL license.

Development of this new implementation targetted POWER 10, however
supports the POWER 8 ISA and above. The following commits provide the
performance data I recorded on POWER 10, though similar improvements can
be found on P8/P9.

As an aside: I have tested this patch set on POWER 8 and POWER 10
hardware running little-endian linux distributions, however I have not
yet been able to test on a big-endian distro. I can confirm however that
the original source in IPCRI does compile and pass tests for both little
and big endian via qemu-user, so spare human error in deriving the
version for Nettle, it is expected to be functional.

[1] https://github.com/ibm/ipcri

Eric Richter (2):
  powerpc64: Add optimized assembly for sha256-compress-n
  powerpc64: Add optimized assembly for sha512-compress-n

 powerpc64/p8/sha256-compress-n.asm | 339 ++++++++++++++++++++++++++++
 powerpc64/p8/sha512-compress.asm   | 345 +++++++++++++++++++++++++++++
 2 files changed, 684 insertions(+)
 create mode 100644 powerpc64/p8/sha256-compress-n.asm
 create mode 100644 powerpc64/p8/sha512-compress.asm

-- 
2.43.0

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

Reply via email to