summaryrefslogtreecommitdiffstats
path: root/crypto/s390x_arch.h
diff options
context:
space:
mode:
authorIngo Franzki <ifranzki@linux.ibm.com>2024-02-01 15:15:27 +0100
committerTomas Mraz <tomas@openssl.org>2024-08-19 18:23:35 +0200
commit0499de5adda26b1ef09660f70c12b4710b5f7c8a (patch)
tree14caff4f11af29652feeb9a7675d23cef7de9497 /crypto/s390x_arch.h
parents390x: Add defines for new CPACF functions (diff)
downloadopenssl-0499de5adda26b1ef09660f70c12b4710b5f7c8a.tar.xz
openssl-0499de5adda26b1ef09660f70c12b4710b5f7c8a.zip
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)
Diffstat (limited to '')
-rw-r--r--crypto/s390x_arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/s390x_arch.h b/crypto/s390x_arch.h
index 88ed866b0d..857e5b5632 100644
--- a/crypto/s390x_arch.h
+++ b/crypto/s390x_arch.h
@@ -192,5 +192,8 @@ extern int OPENSSL_s390xcex;
# define S390X_KMA_HS 0x400
# define S390X_KDSA_D 0x80
# define S390X_KLMD_PS 0x100
+# define S390X_KMAC_IKP 0x8000
+# define S390X_KMAC_IIMP 0x4000
+# define S390X_KMAC_CCUP 0x2000
#endif