Lines Matching refs:lockedEntry

117 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()
264 std::tie(rc, keyBlob) = upgradeKeyBlob(lockedEntry, upgradeParams); in createKeyCharacteristicsCache()
373 void KeymasterWorker::begin(LockedKeyBlobEntry lockedEntry, sp<IBinder> appToken, Blob keyBlob, in begin() argument
378 Worker::addRequest([this, CAPTURE_MOVE(lockedEntry), CAPTURE_MOVE(appToken), in begin()
400 lockedEntry, clientId, appData, std::move(keyBlob), std::move(charBlob)); in begin()
463 log_key_integrity_violation(lockedEntry->alias().c_str(), lockedEntry->uid()); in begin()
480 std::tie(rc, keyBlob) = upgradeKeyBlob(lockedEntry, opParams); in begin()
787 void KeymasterWorker::generateKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> keyParams, in generateKey() argument
789 Worker::addRequest([this, CAPTURE_MOVE(lockedEntry), CAPTURE_MOVE(keyParams), in generateKey()
835 sw_enforced.push_back(keymaster::TAG_USER_ID, get_user_id(lockedEntry->uid())); in generateKey()
839 error = keyStore_->put(lockedEntry, std::move(keyBlob), std::move(keyCharBlob)); in generateKey()
862 fallback->generateKey(std::move(lockedEntry), std::move(keyParams), std::move(entropy), in generateKey()
883 void KeymasterWorker::getKeyCharacteristics(LockedKeyBlobEntry lockedEntry, in getKeyCharacteristics() argument
887 Worker::addRequest([this, CAPTURE_MOVE(lockedEntry), CAPTURE_MOVE(clientId), in getKeyCharacteristics()
890 auto result = createKeyCharacteristicsCache(lockedEntry, clientId, appData, in getKeyCharacteristics()
896 void KeymasterWorker::importKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> keyParams, in importKey() argument
899 Worker::addRequest([this, CAPTURE_MOVE(lockedEntry), CAPTURE_MOVE(keyParams), keyFormat, in importKey()
940 sw_enforced.push_back(keymaster::TAG_USER_ID, get_user_id(lockedEntry->uid())); in importKey()
944 error = keyStore_->put(lockedEntry, std::move(keyBlob), std::move(keyCharBlob)); in importKey()
967 fallback->importKey(std::move(lockedEntry), std::move(keyParams), keyFormat, in importKey()
1059 void KeymasterWorker::exportKey(LockedKeyBlobEntry lockedEntry, KeyFormat exportFormat, in exportKey() argument
1062 Worker::addRequest([this, CAPTURE_MOVE(lockedEntry), exportFormat, CAPTURE_MOVE(clientId), in exportKey()
1074 log_key_integrity_violation(lockedEntry->alias().c_str(), lockedEntry->uid()); in exportKey()
1098 std::tie(rc, keyBlob) = upgradeKeyBlob(lockedEntry, upgradeParams); in exportKey()