Lines Matching refs:userState
82 auto userState = mUserStateDB.getUserState(userId); in initializeUser() local
83 return userState->initialize(pw); in initializeUser()
87 auto userState = mUserStateDB.getUserState(dstUser); in copyMasterKey() local
89 return userState->copyMasterKey(&initState); in copyMasterKey()
93 auto userState = mUserStateDB.getUserState(userId); in writeMasterKey() local
94 return userState->writeMasterKey(pw); in writeMasterKey()
98 auto userState = mUserStateDB.getUserState(userId); in readMasterKey() local
99 return userState->readMasterKey(pw); in readMasterKey()
140 auto userState = mUserStateDB.getUserState(userId); in resetUser() local
141 std::string userDirName = userState->getUserDirName(); in resetUser()
142 auto encryptionKey = userState->getEncryptionKey(); in resetUser()
143 auto state = userState->getState(); in resetUser()
147 userState = {}; in resetUser()
197 userState = mUserStateDB.getUserState(userId); in resetUser()
198 if (!userState->deleteMasterKey()) { in resetUser()
202 if (!userState->reset()) { in resetUser()
213 auto userState = mUserStateDB.getUserState(userId); in isEmpty() local
214 if (!userState) { in isEmpty()
217 userDirName = userState->getUserDirName(); in isEmpty()
231 auto userState = mUserStateDB.getUserState(userId); in lock() local
232 userState->zeroizeMasterKeysInMemory(); in lock()
233 userState->setState(STATE_LOCKED); in lock()
249 auto userState = mUserStateDB.getUserState(userId); in get() local
257 result = blobfile.readBlobs(userState->getEncryptionKey(), userState->getState()); in get()
273 (result = blobfile.readBlobs(userState->getEncryptionKey(), userState->getState()), in get()
285 auto userState = mUserStateDB.getUserStateByUid(blobfile->uid()); in put() local
287 userState->getEncryptionKey(), userState->getState()); in put()
438 auto userState = getUserStateDB().getUserStateByUid(0); in upgradeKeystore() local
441 userState->initialize(); in upgradeKeystore()
445 if (rename(kOldMasterKey, userState->getMasterKeyFileName().c_str()) < 0) { in upgradeKeystore()
452 userState->initialize(); in upgradeKeystore()