s390/zcrypt: move cca misc functions to new code file
authorHarald Freudenberger <freude@linux.ibm.com>
Tue, 11 Jun 2019 09:16:56 +0000 (11:16 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 29 Jul 2019 16:14:17 +0000 (18:14 +0200)
commitefc598e6c8a93491868ef7dc7c6fd28508898af2
tree1df87517794bf023e1c04e3ce40540c2ba32ec18
parent609488bc979f99f805f34e9a32c1e3b71179d10b
s390/zcrypt: move cca misc functions to new code file

Rework of the pkey code. Moved all the cca generic code
away from pkey_api.c into a new file zcrypt_ccamisc.c.
This new file is now part of the zcrypt device driver
and exports a bunch of cca functions to pkey and may
be called from other kernel modules as well.

The pkey ioctl API is unchanged.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/Makefile
drivers/s390/crypto/pkey_api.c
drivers/s390/crypto/zcrypt_api.c
drivers/s390/crypto/zcrypt_ccamisc.c [new file with mode: 0644]
drivers/s390/crypto/zcrypt_ccamisc.h [new file with mode: 0644]