]> asedeno.scripts.mit.edu Git - linux.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)
commit0534bde7de19a2e66c2b2bf05fcfd00a7cc849fa
tree20fe74e2b11cb382a1e7cd4bb4eabdfb933cb552
parenta45a5c7d36a53646094c2ba4970777a20ec0ec42
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