Lines Matching refs:appId
109 const std::string& appId, std::string* key) { in generateKeymasterKey() argument
113 … .Authorization(km::TAG_APPLICATION_ID, km::support::blob2hidlVec(appId)); in generateKeymasterKey()
164 const KeyAuthentication& auth, const std::string& appId) { in beginParams() argument
167 … .Authorization(km::TAG_APPLICATION_ID, km::support::blob2hidlVec(appId)); in beginParams()
366 std::string* appId) { in generateAppId() argument
369 *appId = secdiscardable_hash + stretched; in generateAppId()
501 std::string appId; in storeKey() local
502 if (!generateAppId(auth, stretching, salt, secdiscardable_hash, &appId)) return false; in storeKey()
508 if (!generateKeymasterKey(keymaster, auth, appId, &kmKey)) return false; in storeKey()
512 std::tie(keyParams, authToken) = beginParams(auth, appId); in storeKey()
517 if (!encryptWithoutKeymaster(appId, key, &encryptedKey)) return false; in storeKey()
559 std::string appId; in retrieveKey() local
560 if (!generateAppId(auth, stretching, salt, secdiscardable_hash, &appId)) return false; in retrieveKey()
568 std::tie(keyParams, authToken) = beginParams(auth, appId); in retrieveKey()
573 if (!decryptWithoutKeymaster(appId, encryptedMessage, key)) return false; in retrieveKey()