Add digest support and implementation name to getHardwareFeatures.

Test: Manual
Change-Id: I910dea4fab671436fe5eb2ab35a6ffaa86179b35
This commit is contained in:
Shawn Willden 2017-03-01 06:44:15 -07:00
parent 3918ae6c76
commit 12e72ad921

View file

@ -22,6 +22,7 @@
#include <keystore/keystore_hidl_support.h>
using namespace ::keystore;
using android::hardware::hidl_string;
namespace android {
namespace vold {
@ -186,7 +187,8 @@ KeymasterOperation Keymaster::begin(KeyPurpose purpose, const std::string& key,
bool Keymaster::isSecure() {
bool _isSecure = false;
auto rc = mDevice->getHardwareFeatures(
[&] (bool isSecure, bool, bool, bool) { _isSecure = isSecure; });
[&] (bool isSecure, bool, bool, bool, bool, const hidl_string&, const hidl_string&) {
_isSecure = isSecure; });
return rc.isOk() && _isSecure;
}