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

s390/pkey_pckmo: Return with success for valid protected key types

The key_to_protkey handler function in module pkey_pckmo should return
with success on all known protected key types, including the new types
introduced by fd197556eef5 ("s390/pkey: Add AES xts and HMAC clear key
token support").

Fixes: fd197556eef5 ("s390/pkey: Add AES xts and HMAC clear key token support")
Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

authored by

Holger Dengler and committed by
Heiko Carstens
9b52ddeb cad4b3d4

+1
+1
drivers/s390/crypto/pkey_pckmo.c
··· 324 324 memcpy(protkey, t->protkey, t->len); 325 325 *protkeylen = t->len; 326 326 *protkeytype = t->keytype; 327 + rc = 0; 327 328 break; 328 329 } 329 330 case TOKVER_CLEAR_KEY: {