/system/security/keystore/ |
D | blob.h | 96 class LockedKeyBlobEntry; variable 105 friend LockedKeyBlobEntry; variable 239 class LockedKeyBlobEntry { 247 LockedKeyBlobEntry(const KeyBlobEntry& entry) : entry_(&entry) {} in LockedKeyBlobEntry() function 250 LockedKeyBlobEntry(const LockedKeyBlobEntry&) = delete; 251 LockedKeyBlobEntry& operator=(const LockedKeyBlobEntry&) = delete; 254 LockedKeyBlobEntry() : entry_(nullptr){}; in LockedKeyBlobEntry() function 255 ~LockedKeyBlobEntry(); 256 LockedKeyBlobEntry(LockedKeyBlobEntry&& rhs) : entry_(rhs.entry_) { rhs.entry_ = nullptr; } in LockedKeyBlobEntry() function 257 LockedKeyBlobEntry& operator=(LockedKeyBlobEntry&& rhs) { [all …]
|
D | KeyStore.cpp | 102 LockedKeyBlobEntry KeyStore::getLockedBlobEntryIfNotExists(const std::string& alias, uid_t uid) { in getLockedBlobEntryIfNotExists() 104 auto result = LockedKeyBlobEntry::get(std::move(kbe)); in getLockedBlobEntryIfNotExists() 128 LockedKeyBlobEntry KeyStore::getLockedBlobEntryIfExists(const std::string& alias, uid_t uid) { in getLockedBlobEntryIfExists() 131 LockedKeyBlobEntry lockedentry = LockedKeyBlobEntry::get(std::move(*blobentry)); in getLockedBlobEntryIfExists() 150 std::list<LockedKeyBlobEntry> matches; in resetUser() 154 std::tie(rc, matches) = LockedKeyBlobEntry::list(userDirName); in resetUser() 159 for (LockedKeyBlobEntry& lockedEntry : matches) { in resetUser() 221 std::list<LockedKeyBlobEntry> matches; in isEmpty() 225 std::tie(rc, matches) = LockedKeyBlobEntry::list(userDirName); in isEmpty() 236 static void maybeLogKeyIntegrityViolation(const LockedKeyBlobEntry& lockedEntry, in maybeLogKeyIntegrityViolation() [all …]
|
D | KeyStore.h | 110 LockedKeyBlobEntry getLockedBlobEntryIfNotExists(const std::string& alias, uid_t uid); 112 LockedKeyBlobEntry getLockedBlobEntryIfExists(const std::string& alias, uid_t uid); 123 std::tuple<ResponseCode, Blob, Blob> get(const LockedKeyBlobEntry& blobfile); 124 ResponseCode put(const LockedKeyBlobEntry& blobfile, Blob keyBlob, Blob characteristicsBlob); 125 ResponseCode del(const LockedKeyBlobEntry& blobfile); 127 std::string addGrant(const LockedKeyBlobEntry& blobfile, uid_t granteeUid); 128 bool removeGrant(const LockedKeyBlobEntry& blobfile, const uid_t granteeUid); 131 ResponseCode importKey(const uint8_t* key, size_t keyLen, const LockedKeyBlobEntry& blobfile, 136 std::tuple<ResponseCode, Blob, Blob, LockedKeyBlobEntry>
|
D | keymaster_worker.h | 172 void deleteOldKeyOnUpgrade(const LockedKeyBlobEntry& blobfile, Blob keyBlob); 174 upgradeKeyBlob(const LockedKeyBlobEntry& lockedEntry, const AuthorizationSet& params); 176 createKeyCharacteristicsCache(const LockedKeyBlobEntry& lockedEntry, 208 void begin(LockedKeyBlobEntry, sp<IBinder> appToken, Blob keyBlob, Blob charBlob, 244 void generateKey(LockedKeyBlobEntry, hidl_vec<KeyParameter> keyParams, 252 void getKeyCharacteristics(LockedKeyBlobEntry lockedEntry, hidl_vec<uint8_t> clientId, 258 void importKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> params, 264 void importWrappedKey(LockedKeyBlobEntry wrappingLockedEntry, 265 LockedKeyBlobEntry wrapppedLockedEntry, hidl_vec<uint8_t> wrappedKeyData, 271 void exportKey(LockedKeyBlobEntry lockedEntry, KeyFormat exportFormat,
|
D | blob.cpp | 367 ResponseCode LockedKeyBlobEntry::writeBlobs(Blob keyBlob, Blob characteristicsBlob, in writeBlobs() 496 LockedKeyBlobEntry::readBlobs(const std::vector<uint8_t>& aes_key, State state) const { in readBlobs() 512 ResponseCode LockedKeyBlobEntry::deleteBlobs() const { in deleteBlobs() 578 void LockedKeyBlobEntry::put(const KeyBlobEntry& entry) { in put() 585 LockedKeyBlobEntry::~LockedKeyBlobEntry() { in ~LockedKeyBlobEntry() 589 LockedKeyBlobEntry LockedKeyBlobEntry::get(KeyBlobEntry entry) { in get() 595 return LockedKeyBlobEntry(*iterator); in get() 598 std::set<KeyBlobEntry> LockedKeyBlobEntry::locked_blobs_; 599 std::mutex LockedKeyBlobEntry::locked_blobs_mutex_; 600 std::condition_variable LockedKeyBlobEntry::locked_blobs_mutex_cond_var_; [all …]
|
D | grant_store.h | 67 std::string put(const uid_t uid, const LockedKeyBlobEntry& blobfile); 69 bool removeByFileAlias(const uid_t granteeUid, const LockedKeyBlobEntry& lockedEntry);
|
D | grant_store.cpp | 43 std::string GrantStore::put(const uid_t uid, const LockedKeyBlobEntry& lockedEntry) { in put() 77 bool GrantStore::removeByFileAlias(const uid_t granteeUid, const LockedKeyBlobEntry& lockedEntry) { in removeByFileAlias()
|
D | key_store_service.cpp | 168 LockedKeyBlobEntry lockedEntry; in get() 237 LockedKeyBlobEntry lockedEntry = in exist() 255 std::list<LockedKeyBlobEntry> internal_matches; in list() 259 LockedKeyBlobEntry::list(userDirName, [&](uid_t uid, const std::string& alias) { in list() 270 for (LockedKeyBlobEntry& entry : internal_matches) { in list() 302 std::list<LockedKeyBlobEntry> internal_matches; in listUidsOfAuthBoundKeys() 304 LockedKeyBlobEntry::list(userDirName, [&](uid_t, const std::string&) { in listUidsOfAuthBoundKeys() 313 for (LockedKeyBlobEntry& entry : internal_matches) { in listUidsOfAuthBoundKeys() 573 std::list<LockedKeyBlobEntry> entries; in clear_uid() 578 std::tie(rc, entries) = LockedKeyBlobEntry::list( in clear_uid() [all …]
|
D | keymaster_worker.cpp | 96 void KeymasterWorker::deleteOldKeyOnUpgrade(const LockedKeyBlobEntry& blobfile, Blob keyBlob) { in deleteOldKeyOnUpgrade() 117 KeymasterWorker::upgradeKeyBlob(const LockedKeyBlobEntry& lockedEntry, in upgradeKeyBlob() 180 KeymasterWorker::createKeyCharacteristicsCache(const LockedKeyBlobEntry& lockedEntry, in createKeyCharacteristicsCache() 375 void KeymasterWorker::begin(LockedKeyBlobEntry lockedEntry, sp<IBinder> appToken, Blob keyBlob, in begin() 790 void KeymasterWorker::generateKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> keyParams, in generateKey() 889 void KeymasterWorker::getKeyCharacteristics(LockedKeyBlobEntry lockedEntry, in getKeyCharacteristics() 902 void KeymasterWorker::importKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> keyParams, in importKey() 993 void KeymasterWorker::importWrappedKey(LockedKeyBlobEntry wrappingLockedEntry, in importWrappedKey() 994 LockedKeyBlobEntry wrapppedLockedEntry, in importWrappedKey() 1068 void KeymasterWorker::exportKey(LockedKeyBlobEntry lockedEntry, KeyFormat exportFormat, in exportKey()
|
D | user_state.cpp | 147 auto lockedEntry = LockedKeyBlobEntry::get(mMasterKeyEntry); in writeMasterKey() 153 auto lockedEntry = LockedKeyBlobEntry::get(mMasterKeyEntry); in readMasterKey()
|