Lines Matching refs:appId
142 static bool generateKeyStorageKey(Keymaster& keymaster, const std::string& appId, in generateKeyStorageKey() argument
147 .Authorization(km::TAG_APPLICATION_ID, appId) in generateKeyStorageKey()
176 static km::AuthorizationSet beginParams(const std::string& appId) { in beginParams() argument
179 .Authorization(km::TAG_APPLICATION_ID, appId); in beginParams()
448 const std::string& secdiscardable_hash, std::string* appId) { in generateAppId() argument
451 *appId = secdiscardable_hash + stretched; in generateAppId()
459 appId->append(storage_binding_info.seed.begin(), storage_binding_info.seed.end()); in generateAppId()
585 std::string appId; in storeKey() local
586 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in storeKey()
592 if (!generateKeyStorageKey(keymaster, appId, &kmKey)) return false; in storeKey()
594 km::AuthorizationSet keyParams = beginParams(appId); in storeKey()
597 if (!encryptWithoutKeymaster(appId, key, &encryptedKey)) return false; in storeKey()
636 std::string appId; in retrieveKey() local
637 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in retrieveKey()
643 km::AuthorizationSet keyParams = beginParams(appId); in retrieveKey()
647 if (!decryptWithoutKeymaster(appId, encryptedMessage, key)) return false; in retrieveKey()