Commit 9b52ddeb authored by Holger Dengler's avatar Holger Dengler Committed by Heiko Carstens

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 fd197556 ("s390/pkey: Add AES xts and HMAC clear key
token support").

Fixes: fd197556 ("s390/pkey: Add AES xts and HMAC clear key token support")
Signed-off-by: default avatarHolger Dengler <dengler@linux.ibm.com>
Reviewed-by: default avatarIngo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent cad4b3d4
...@@ -324,6 +324,7 @@ static int pckmo_key2protkey(const u8 *key, u32 keylen, ...@@ -324,6 +324,7 @@ static int pckmo_key2protkey(const u8 *key, u32 keylen,
memcpy(protkey, t->protkey, t->len); memcpy(protkey, t->protkey, t->len);
*protkeylen = t->len; *protkeylen = t->len;
*protkeytype = t->keytype; *protkeytype = t->keytype;
rc = 0;
break; break;
} }
case TOKVER_CLEAR_KEY: { case TOKVER_CLEAR_KEY: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment