]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/pkey: Add slowpath function to CCA and EP11 handler
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 22 Aug 2024 09:32:20 +0000 (11:32 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2024 20:56:34 +0000 (22:56 +0200)
commit2fc401b94434ae97d1c9c1283fcf816c1ad9457c
treeaccbf88e910012be9a0e84b999bba11ff19aa517
parent8fcc231ce3bea12b78bb94b280cdc03cff342435
s390/pkey: Add slowpath function to CCA and EP11 handler

For some keys there exists an alternative but usually slower
path to convert the key material into a protected key.
This patch introduces a new handler function
  slowpath_key_to_protkey()
which provides this alternate path for the CCA and EP11
handler code. With that even the knowledge about how
and when this can be used within the pkey API code can
be removed. So now the pkey API just tries the primary
way and if that fails simple tries the alternative way.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/pkey_api.c
drivers/s390/crypto/pkey_base.c
drivers/s390/crypto/pkey_base.h
drivers/s390/crypto/pkey_cca.c
drivers/s390/crypto/pkey_ep11.c