Skip to content

[AArch64] Optimize SHA-256 compress

Maamoun TK requested to merge mamonet/nettle:arm64-sha into arm64-sha1

This patch optimizes SHA-256 compress function by taking advantage of hardware-accelerated instructions of crypto extension:

SHA256H:   SHA256 hash update (part 1)
SHA256H2:  SHA256 hash update (part 2)
SHA256SU0: SHA256 schedule update 0
SHA256SU1: SHA256 schedule update 1

Benchmark on GCC117 instance of CFarm using nettle-benchmark

Mode C Hardware-accelerated
sha256 149.16 Mbyte/s 821.48 Mbyte/s

Merge request reports

Loading