Home GnuPG

Add ARMv8/AArch64 Crypto Extension implementation of SHA-1
e4eb03f56683Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add ARMv8/AArch64 Crypto Extension implementation of SHA-1

* cipher/Makefile.am: Add 'sha1-armv8-aarch64-ce.S'.
* cipher/sha1-armv8-aarch64-ce.S: New.
* cipher/sha1.c (USE_ARM_CE): Enable on ARMv8/AArch64.
* configure.ac: Add 'sha1-armv8-aarch64-ce.lo'.

Benchmark on Cortex-A53 (1152 Mhz):

Before:

|  nanosecs/byte   mebibytes/sec   cycles/byte

SHA1 | 7.54 ns/B 126.4 MiB/s 8.69 c/B

After (4.3x faster):

|  nanosecs/byte   mebibytes/sec   cycles/byte

SHA1 | 1.72 ns/B 553.0 MiB/s 1.99 c/B

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Sep 4 2016, 12:41 PM
Parents
rC595251ad37bf: Add AArch64 assembly implementation of AES
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rCe4eb03f56683: Add ARMv8/AArch64 Crypto Extension implementation of SHA-1 (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Sep 5 2016, 7:08 PM