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)
commitd2e5b6436c28e7ee4988497d31122e06217876fb
tree049bc79af18b0c454f6df4b1d76b9c035d3ff99e
parent037c8489ade669e0f09ad40d5b91e5e1159a14b1
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