crypto: s390 - New s390 specific protected key hash phmac
authorHarald Freudenberger <freude@linux.ibm.com>
Tue, 17 Jun 2025 13:44:37 +0000 (15:44 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 26 Jun 2025 10:52:33 +0000 (18:52 +0800)
commitcbbc675506cc4cd93e6f895e7c1f693156f9a95c
tree74394e7afe6d80503af614e30cdb52391dd5b583
parent86ca5cb84fc339a08dfd673a50c6f3bea1b2f956
crypto: s390 - New s390 specific protected key hash phmac

Add support for protected key hmac ("phmac") for s390 arch.

With the latest machine generation there is now support for
protected key (that is a key wrapped by a master key stored
in firmware) hmac for sha2 (sha224, sha256, sha384 and sha512)
for the s390 specific CPACF instruction kmac.

This patch adds support via 4 new ahashes registered as
phmac(sha224), phmac(sha256), phmac(sha384) and phmac(sha512).

Co-developed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/configs/debug_defconfig
arch/s390/configs/defconfig
arch/s390/crypto/Makefile
arch/s390/crypto/phmac_s390.c [new file with mode: 0644]
drivers/crypto/Kconfig