Skip to content

Commit 86ca5cb

Browse files
holger-denglerherbertx
authored andcommitted
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>
1 parent 2f8839e commit 86ca5cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/s390/include/asm/cpacf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@
129129
#define CPACF_KMAC_HMAC_SHA_256 0x71
130130
#define CPACF_KMAC_HMAC_SHA_384 0x72
131131
#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
132136

133137
/*
134138
* Function codes for the PCKMO (PERFORM CRYPTOGRAPHIC KEY MANAGEMENT)

0 commit comments

Comments
 (0)