summaryrefslogtreecommitdiffstats
path: root/crypto/s390x_arch.h
diff options
context:
space:
mode:
authorIngo Franzki <ifranzki@linux.ibm.com>2024-01-31 16:26:52 +0100
committerTomas Mraz <tomas@openssl.org>2024-08-19 18:23:35 +0200
commit518b53b139d7b4ac082ccedd401d2ee08fc66985 (patch)
tree42e335527f15dcf543d357478d5c5db2c910cbfa /crypto/s390x_arch.h
parentExplicitly include e_os.h for close() (diff)
downloadopenssl-518b53b139d7b4ac082ccedd401d2ee08fc66985.tar.xz
openssl-518b53b139d7b4ac082ccedd401d2ee08fc66985.zip
s390x: Add defines for new CPACF functions
Add defines for new CPACF functions codes, its required MSA levels, and document how to disable these functions via the OPENSSL_s390xcap environment variable. 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 'crypto/s390x_arch.h')
-rw-r--r--crypto/s390x_arch.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/crypto/s390x_arch.h b/crypto/s390x_arch.h
index fdc682af06..88ed866b0d 100644
--- a/crypto/s390x_arch.h
+++ b/crypto/s390x_arch.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2017-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -115,6 +115,7 @@ extern int OPENSSL_s390xcex;
# define S390X_MSA5 57 /* message-security-assist-ext. 5 */
# define S390X_MSA3 76 /* message-security-assist-ext. 3 */
# define S390X_MSA4 77 /* message-security-assist-ext. 4 */
+# define S390X_MSA12 86 /* message-security-assist-ext. 12 */
# define S390X_VX 129 /* vector */
# define S390X_VXD 134 /* vector packed decimal */
# define S390X_VXE 135 /* vector enhancements 1 */
@@ -150,6 +151,14 @@ extern int OPENSSL_s390xcex;
/* km */
# define S390X_XTS_AES_128 50
# define S390X_XTS_AES_256 52
+# define S390X_XTS_AES_128_MSA10 82
+# define S390X_XTS_AES_256_MSA10 84
+
+/* kmac */
+# define S390X_HMAC_SHA_224 112
+# define S390X_HMAC_SHA_256 113
+# define S390X_HMAC_SHA_384 114
+# define S390X_HMAC_SHA_512 115
/* prno */
# define S390X_SHA_512_DRNG 3