Skip to content

[S390x] Optimize SHA1 compress with fat build support

Maamoun TK requested to merge mamonet/nettle:s390x-sha1 into master

This patch optimizes SHA1 compress function for s390x architectures using built-in cipher accelerating instruction KIMD (COMPUTE INTERMEDIATE MESSAGE DIGEST). The patch also adds fat build support for the two functions to pick the supported implementations at run-time.

make check passes all tests. Benchmark of SHA-1 by executing examples/nettle-benchmark:

Function C Hardware-accelerated
update 370.57 Mbyte/s 816.54 Mbyte/s
Edited by Maamoun TK

Merge request reports