]> git.ipfire.org Git - thirdparty/nettle.git/commit
powerpc64: Add optimized assembly for sha512-compress ppc64-sha512
authorEric Richter <erichte@linux.ibm.com>
Thu, 20 Jun 2024 18:43:58 +0000 (13:43 -0500)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 25 Aug 2024 09:46:49 +0000 (11:46 +0200)
commit0b79dfdadd1388932633f0d98120d147ff4a6283
tree1a54e61a699ca3610d0199374bc406a30e1bc923
parent95d7ebbafaea628751e35d2ce1c4c5d2617ed5de
powerpc64: Add optimized assembly for sha512-compress

This patch introduces an optimized powerpc64 assembly implementation for
sha512-compress, derived from the implementation for sha256-compress-n.

The following data was captured on a POWER 10 LPAR @ ~4.050GHz

Current C implementation:
         Algorithm         mode Mbyte/s
            sha512       update  474.00
        sha512_224       update  474.61
        sha512_256       update  474.15
       hmac-sha512     64 bytes  104.08
       hmac-sha512    256 bytes  220.42
       hmac-sha512   1024 bytes  368.58
       hmac-sha512   4096 bytes  436.27
       hmac-sha512   single msg  460.10

With optimized assembly:
         Algorithm         mode Mbyte/s
            sha512       update  746.96
        sha512_224       update  746.96
        sha512_256       update  746.93
       hmac-sha512     64 bytes  150.54
       hmac-sha512    256 bytes  327.58
       hmac-sha512   1024 bytes  562.49
       hmac-sha512   4096 bytes  677.38
       hmac-sha512   single msg  713.06

Signed-off-by: Eric Richter <erichte@linux.ibm.com>
fat-ppc.c
powerpc64/fat/sha512-compress-2.asm [new file with mode: 0644]
powerpc64/p8/sha512-compress.asm [new file with mode: 0644]