]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm/security, acpi/nfit: unify zero-key for all security commands
authorDave Jiang <dave.jiang@intel.com>
Wed, 27 Mar 2019 18:12:45 +0000 (11:12 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 30 Mar 2019 15:27:07 +0000 (08:27 -0700)
commitc8bb8525e60628a62606c8cfa976074136da901a
tree049bc79af18b0c454f6df4b1d76b9c035d3ff99e
parentb0acabfedacee2ae33becc4fae7cfb22c261b7c1
libnvdimm/security, acpi/nfit: unify zero-key for all security commands

With zero-key defined, we can remove previous detection of key id 0 or null
key in order to deal with a zero-key situation. Syncing all security
commands to use the zero-key. Helper functions are introduced to return the
data that points to the actual key payload or the zero_key. This helps
uniformly handle the key material even with zero_key.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/intel.c
drivers/nvdimm/security.c