]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pkey: Define protected key blob format
authorIngo Franzki <ifranzki@linux.ibm.com>
Thu, 23 Aug 2018 14:28:16 +0000 (16:28 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:38 +0000 (11:21 +0200)
commitdbefd26f30f29ab0dfd57e5c2fad574b9adadbb3
tree20fe74e2b11cb382a1e7cd4bb4eabdfb933cb552
parentcfaad30a158bf5606d2f9c39a7107738946570e4
s390/pkey: Define protected key blob format

Define a new protected key blob format. Protected key
blobs use a type of 0x00, to be distinguished from other
CCA key blobs. CCA defines type 0x00 as NULL key blob,
but pkey will never use NULL keys anyway, so it is save
to reuse this type. Using another so far undefined type
value would introduce the risk that sometimes in the
future CCA defines this so far unassigned type for a
future key blob.

Also add defines for the key token types and versions,
and use them instead of hard coded hex values.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/pkey_api.c