Home
last modified time | relevance | path

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

/system/security/keystore/
Dkeymaster_worker.cpp117 KeymasterWorker::upgradeKeyBlob(const LockedKeyBlobEntry& lockedEntry, in upgradeKeyBlob() argument
119 LOG(INFO) << "upgradeKeyBlob " << lockedEntry->alias() << " " << (uint32_t)lockedEntry->uid(); in upgradeKeyBlob()
123 auto userState = keyStore_->getUserStateDB().getUserStateByUid(lockedEntry->uid()); in upgradeKeyBlob()
132 lockedEntry.readBlobs(userState->getEncryptionKey(), userState->getState()); in upgradeKeyBlob()
148 log_key_integrity_violation(lockedEntry->alias().c_str(), lockedEntry->uid()); in upgradeKeyBlob()
160 error = keyStore_->put(lockedEntry, newBlob, charBlob); in upgradeKeyBlob()
166 deleteOldKeyOnUpgrade(lockedEntry, std::move(blob)); in upgradeKeyBlob()
180 KeymasterWorker::createKeyCharacteristicsCache(const LockedKeyBlobEntry& lockedEntry, in createKeyCharacteristicsCache() argument
218 log_key_integrity_violation(lockedEntry->alias().c_str(), lockedEntry->uid()); in createKeyCharacteristicsCache()
239 error = keyStore_->put(lockedEntry, {}, newCharBlob); in createKeyCharacteristicsCache()
[all …]
Dkey_store_service.cpp168 LockedKeyBlobEntry lockedEntry; in get() local
170 std::tie(rc, keyBlob, charBlob, lockedEntry) = in get()
195 auto lockedEntry = mKeyStore->getLockedBlobEntryIfNotExists(name8.string(), targetUid); in insert() local
197 if (!lockedEntry) { in insert()
206 *aidl_return = static_cast<int32_t>(mKeyStore->put(lockedEntry, keyBlob, {})); in insert()
218 auto lockedEntry = mKeyStore->getLockedBlobEntryIfExists(name8.string(), targetUid); in del() local
219 if (!lockedEntry) { in del()
224 ResponseCode result = mKeyStore->del(lockedEntry); in del()
237 LockedKeyBlobEntry lockedEntry = in exist() local
240 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.h174 upgradeKeyBlob(const LockedKeyBlobEntry& lockedEntry, const AuthorizationSet& params);
176 createKeyCharacteristicsCache(const LockedKeyBlobEntry& lockedEntry,
252 void getKeyCharacteristics(LockedKeyBlobEntry lockedEntry, hidl_vec<uint8_t> clientId,
258 void importKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> params,
271 void exportKey(LockedKeyBlobEntry lockedEntry, KeyFormat exportFormat,
Dgrant_store.h69 bool removeByFileAlias(const uid_t granteeUid, const LockedKeyBlobEntry& lockedEntry);