Lines Matching refs:appId
100 const std::string& appId, std::string* key) { in generateKeymasterKey() argument
106 addStringParam(¶mBuilder, keymaster::TAG_APPLICATION_ID, appId); in generateKeymasterKey()
126 const std::string& appId) { in beginParams() argument
131 addStringParam(¶mBuilder, keymaster::TAG_APPLICATION_ID, appId); in beginParams()
140 const KeyAuthentication& auth, const std::string& appId, in encryptWithKeymasterKey() argument
142 auto params = beginParams(auth, appId).build(); in encryptWithKeymasterKey()
165 const KeyAuthentication& auth, const std::string& appId, in decryptWithKeymasterKey() argument
169 auto params = addStringParam(beginParams(auth, appId), keymaster::TAG_NONCE, nonce).build(); in decryptWithKeymasterKey()
239 std::string* appId) { in generateAppId() argument
242 *appId = hashSecdiscardable(secdiscardable) + stretched; in generateAppId()
269 std::string appId; in storeKey() local
270 if (!generateAppId(auth, stretching, salt, secdiscardable, &appId)) return false; in storeKey()
274 if (!generateKeymasterKey(keymaster, auth, appId, &kmKey)) return false; in storeKey()
277 if (!encryptWithKeymasterKey(keymaster, kmKey, auth, appId, key, &encryptedKey)) return false; in storeKey()
297 std::string appId; in retrieveKey() local
298 if (!generateAppId(auth, stretching, salt, secdiscardable, &appId)) return false; in retrieveKey()
305 return decryptWithKeymasterKey(keymaster, kmKey, auth, appId, encryptedMessage, key); in retrieveKey()