]> 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)
commit9e5e9654531c0ddc0645fb0ed31471f550890641
tree049bc79af18b0c454f6df4b1d76b9c035d3ff99e
parentb3d0a11db7aa9863b8d51a9c467f090a1e3fdf64
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