Fix keystore::del to use correct keymaster device.

Keystore uses two different keymaster devices.
One device is provided by the OEM providing
hardware/trust zone backed functionality. The other
is a pure software implementation of keymaster.
The latter was used when a "hardware" implementation
failed generating or importing keys with certain
parameters.

During the port to HIDL based HALs this fallback software
device was removed and later reinstated. The delete
function of keystore, however was left unaware of the
existence of the fallback device and passed do-be-deleted
"fallback"-keys to the hardware device which is unaware
of the format and fails.

This patch makes Keystore::del aware of the fallback
device.

Test: import and delete a key that is unsupported by the
      underlying "hardware" implementation of keymaster

Change-Id: I011c19c515b4b41fedec0c21f89efb58279f297c
1 file changed
tree: cd45989ab9c8e88996b7fdaf1dcadcc3217dd3af
  1. keystore/
  2. keystore-engine/
  3. softkeymaster/
  4. MODULE_LICENSE_APACHE2
  5. NOTICE