]> 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)
commitb3d0a11db7aa9863b8d51a9c467f090a1e3fdf64
tree34bc6ee6b1449b9567ea64e228cd038a980df58f
parentc7707a63487162c687aee036ff04004ebd1476bb
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