Home
last modified time | relevance | path

Searched refs:lockedEntry (Results 1 – 7 of 7) sorted by relevance

/system/security/keystore/
Dkeymaster_worker.cpp78 KeymasterWorker::upgradeKeyBlob(const LockedKeyBlobEntry& lockedEntry, in upgradeKeyBlob() argument
80 LOG(INFO) << "upgradeKeyBlob " << lockedEntry->alias() << " " << (uint32_t)lockedEntry->uid(); in upgradeKeyBlob()
84 auto userState = keyStore_->getUserStateDB().getUserStateByUid(lockedEntry->uid()); in upgradeKeyBlob()
93 lockedEntry.readBlobs(userState->getEncryptionKey(), userState->getState()); in upgradeKeyBlob()
109 log_key_integrity_violation(lockedEntry->alias().c_str(), lockedEntry->uid()); in upgradeKeyBlob()
114 error = keyStore_->del(lockedEntry); in upgradeKeyBlob()
127 error = keyStore_->put(lockedEntry, newBlob, charBlob); in upgradeKeyBlob()
145 KeymasterWorker::createKeyCharacteristicsCache(const LockedKeyBlobEntry& lockedEntry, in createKeyCharacteristicsCache() argument
183 log_key_integrity_violation(lockedEntry->alias().c_str(), lockedEntry->uid()); in createKeyCharacteristicsCache()
204 error = keyStore_->put(lockedEntry, {}, newCharBlob); in createKeyCharacteristicsCache()
[all …]
Dkey_store_service.cpp171 LockedKeyBlobEntry lockedEntry; in get() local
173 std::tie(rc, keyBlob, charBlob, lockedEntry) = in get()
199 auto lockedEntry = mKeyStore->getLockedBlobEntryIfNotExists(name8.string(), targetUid); in insert() local
201 if (!lockedEntry) { in insert()
210 *aidl_return = static_cast<int32_t>(mKeyStore->put(lockedEntry, keyBlob, {})); in insert()
223 auto lockedEntry = mKeyStore->getLockedBlobEntryIfExists(name8.string(), targetUid); in del() local
224 if (!lockedEntry) { in del()
229 ResponseCode result = mKeyStore->del(lockedEntry); in del()
243 LockedKeyBlobEntry lockedEntry = in exist() local
246 static_cast<int32_t>(lockedEntry ? ResponseCode::NO_ERROR : ResponseCode::KEY_NOT_FOUND); in exist()
[all …]
Dgrant_store.cpp43 std::string GrantStore::put(const uid_t uid, const LockedKeyBlobEntry& lockedEntry) { in put() argument
46 KeyBlobEntry blobEntry = *lockedEntry; in put()
77 bool GrantStore::removeByFileAlias(const uid_t granteeUid, const LockedKeyBlobEntry& lockedEntry) { in removeByFileAlias() argument
81 if (i->entry_ == *lockedEntry) { in removeByFileAlias()
DKeyStore.cpp159 for (LockedKeyBlobEntry& lockedEntry : matches) { in resetUser()
167 std::tie(rc, blob, charBlob) = lockedEntry.readBlobs(encryptionKey, state); in resetUser()
193 del(lockedEntry); in resetUser()
236 static void maybeLogKeyIntegrityViolation(const LockedKeyBlobEntry& lockedEntry, in maybeLogKeyIntegrityViolation() argument
239 log_key_integrity_violation(lockedEntry->alias().c_str(), lockedEntry->uid()); in maybeLogKeyIntegrityViolation()
358 auto& [rc, keyBlob, charBlob, lockedEntry] = result; in getKeyForName()
360 lockedEntry = getLockedBlobEntryIfExists(keyName.string(), uid); in getKeyForName()
362 if (!lockedEntry) return rc = ResponseCode::KEY_NOT_FOUND, std::move(result); in getKeyForName()
364 std::tie(rc, keyBlob, charBlob) = get(lockedEntry); in getKeyForName()
Duser_state.cpp147 auto lockedEntry = LockedKeyBlobEntry::get(mMasterKeyEntry); in writeMasterKey() local
148 return lockedEntry.writeBlobs(masterKeyBlob, {}, passwordKey, STATE_NO_ERROR); in writeMasterKey()
153 auto lockedEntry = LockedKeyBlobEntry::get(mMasterKeyEntry); in readMasterKey() local
185 lockedEntry.readBlobs(passwordKey, STATE_NO_ERROR); in readMasterKey()
Dkeymaster_worker.h179 upgradeKeyBlob(const LockedKeyBlobEntry& lockedEntry, const AuthorizationSet& params);
181 createKeyCharacteristicsCache(const LockedKeyBlobEntry& lockedEntry,
257 void getKeyCharacteristics(LockedKeyBlobEntry lockedEntry, hidl_vec<uint8_t> clientId,
263 void importKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> params,
276 void exportKey(LockedKeyBlobEntry lockedEntry, KeyFormat exportFormat,
Dgrant_store.h69 bool removeByFileAlias(const uid_t granteeUid, const LockedKeyBlobEntry& lockedEntry);