]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm/security: provide fix for secure-erase to use zero-key
authorDave Jiang <dave.jiang@intel.com>
Wed, 27 Mar 2019 18:10:44 +0000 (11:10 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 30 Mar 2019 15:26:37 +0000 (08:26 -0700)
commitb0acabfedacee2ae33becc4fae7cfb22c261b7c1
tree34bc6ee6b1449b9567ea64e228cd038a980df58f
parente4a1f7ae34b7e744ba1a7dcbf5bb3a55ecb0c030
libnvdimm/security: provide fix for secure-erase to use zero-key

Add a zero key in order to standardize hardware that want a key of 0's to
be passed. Some platforms defaults to a zero-key with security enabled
rather than allow the OS to enable the security. The zero key would allow
us to manage those platform as well. This also adds a fix to secure erase
so it can use the zero key to do crypto erase. Some other security commands
already use zero keys. This introduces a standard zero-key to allow
unification of semantics cross nvdimm security commands.

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