]> 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)
commitfc345bcbdfa35f7523af5c467be96d25611f724e
tree20fe74e2b11cb382a1e7cd4bb4eabdfb933cb552
parent961c7e03e1ffcb289978ffa46ae33da8b6ac72e9
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