Home
last modified time | relevance | path

Searched refs:kmKey (Results 1 – 5 of 5) sorted by relevance

/system/vold/
DKeyStorage.cpp152 bool exportWrappedStorageKey(const KeyBuffer& kmKey, KeyBuffer* key) { in exportWrappedStorageKey() argument
157 if (!keymaster.exportKey(kmKey, &key_temp)) return false; in exportWrappedStorageKey()
218 bool kmDeleteKey(Keymaster& keymaster, const std::string& kmKey) { in kmDeleteKey() argument
222 std::thread(deferedKmDeleteKey, kmKey).detach(); in kmDeleteKey()
226 return keymaster.deleteKey(kmKey); in kmDeleteKey()
236 std::string kmKey; in begin() local
237 if (!readFileToString(kmKeyPath, &kmKey)) return KeymasterOperation(); in begin()
241 auto opHandle = keymaster.begin(purpose, kmKey, inParams, authToken, outParams); in begin()
248 if (!keymaster.upgradeKey(kmKey, keyParams, &newKey)) return KeymasterOperation(); in begin()
260 if (!kmDeleteKey(keymaster, kmKey)) { in begin()
[all …]
DKeyStorage.h75 bool exportWrappedStorageKey(const KeyBuffer& kmKey, KeyBuffer* key);
DKeymaster.cpp141 bool Keymaster::exportKey(const KeyBuffer& kmKey, std::string* key) { in exportKey() argument
142 auto kmKeyBlob = km::support::blob2hidlVec(std::string(kmKey.data(), kmKey.size())); in exportKey()
DKeymaster.h118 bool exportKey(const KeyBuffer& kmKey, std::string* key);
/system/security/keystore/
Dlegacy_keymaster_device_wrapper.cpp447 auto kmKey = hidlVec2KmKeyBlob(key); in begin() local
450 auto rc = keymaster_device_->begin(keymaster_device_, legacy_enum_conversion(purpose), &kmKey, in begin()