]> git.ipfire.org Git - thirdparty/openssl.git/commit
s390x: Add hardware acceleration for HMAC
authorIngo Franzki <ifranzki@linux.ibm.com>
Thu, 1 Feb 2024 14:15:27 +0000 (15:15 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 19 Aug 2024 16:23:35 +0000 (18:23 +0200)
commit0499de5adda26b1ef09660f70c12b4710b5f7c8a
tree14caff4f11af29652feeb9a7675d23cef7de9497
parent518b53b139d7b4ac082ccedd401d2ee08fc66985
s390x: Add hardware acceleration for HMAC

The CPACF instruction KMAC provides support for accelerating the HMAC
algorithm on newer machines for HMAC with SHA-224, SHA-256, SHA-384, and
SHA-512.

Preliminary measurements showed performance improvements of up to a factor
of 2, dependent on the message size, whether chunking is used and the size
of the chunks.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25161)
crypto/hmac/build.info
crypto/hmac/hmac.c
crypto/hmac/hmac_local.h
crypto/hmac/hmac_s390x.c [new file with mode: 0644]
crypto/s390x_arch.h