Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

s390/crypto: Add protected key hmac subfunctions for KMAC

The CPACF KMAC instruction supports new subfunctions for
protected key hmac. Add defines for these 4 new subfuctions.

Signed-off-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: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Holger Dengler and committed by
Herbert Xu
86ca5cb8 2f8839e6

+4
+4
arch/s390/include/asm/cpacf.h
··· 129 129 #define CPACF_KMAC_HMAC_SHA_256 0x71 130 130 #define CPACF_KMAC_HMAC_SHA_384 0x72 131 131 #define CPACF_KMAC_HMAC_SHA_512 0x73 132 + #define CPACF_KMAC_PHMAC_SHA_224 0x78 133 + #define CPACF_KMAC_PHMAC_SHA_256 0x79 134 + #define CPACF_KMAC_PHMAC_SHA_384 0x7a 135 + #define CPACF_KMAC_PHMAC_SHA_512 0x7b 132 136 133 137 /* 134 138 * Function codes for the PCKMO (PERFORM CRYPTOGRAPHIC KEY MANAGEMENT)