]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/pkey: Introduce new API for secure key verification
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Wed, 15 Mar 2017 10:08:27 +0000 (11:08 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 22 Mar 2017 07:29:13 +0000 (08:29 +0100)
commite61a6134e7a547939a0b7056bcf6b12d75b6d355
tree00b5cd6d04e1b379cbd9863d802ffff5f4681c05
parent15d3387c3c7cfe8c8c790bfbe829364782b70d43
s390/pkey: Introduce new API for secure key verification

User space needs some information about the secure key(s)
before actually invoking the pkey and/or paes funcionality.
This patch introduces a new ioctl API and in kernel API to
verify the the secure key blob and give back some
information about the key (type, bitsize, old MKVP).
Both APIs are described in detail in the header files
arch/s390/include/asm/pkey.h and arch/s390/include/uapi/asm/pkey.h.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pkey.h
arch/s390/include/uapi/asm/pkey.h
drivers/s390/crypto/pkey_api.c