Add digest support and implementation name to getHardwareFeatures.
Test: Manual Change-Id: I910dea4fab671436fe5eb2ab35a6ffaa86179b35
This commit is contained in:
parent
3918ae6c76
commit
12e72ad921
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue