Lines Matching refs:mMasterKeyEntry
39 : mMasterKeyEntry(".masterkey", "user_" + std::to_string(userId), userId, /* masterkey */ true), in UserState()
55 if ((mkdir(mMasterKeyEntry.user_dir().c_str(), S_IRUSR | S_IWUSR | S_IXUSR) < 0) && in initialize()
57 ALOGE("Could not create directory '%s'", mMasterKeyEntry.user_dir().c_str()); in initialize()
61 if (mMasterKeyEntry.hasKeyBlob()) { in initialize()
82 return unlink(mMasterKeyEntry.getKeyBlobPath().c_str()) == 0 || errno == ENOENT; in deleteMasterKey()
122 int out = TEMP_FAILURE_RETRY(open(mMasterKeyEntry.getKeyBlobPath().c_str(), in copyMasterKeyFile()
133 unlink(mMasterKeyEntry.getKeyBlobPath().c_str()); in copyMasterKeyFile()
147 auto lockedEntry = LockedKeyBlobEntry::get(mMasterKeyEntry); in writeMasterKey()
153 auto lockedEntry = LockedKeyBlobEntry::get(mMasterKeyEntry); in readMasterKey()
155 int in = TEMP_FAILURE_RETRY(open(mMasterKeyEntry.getKeyBlobPath().c_str(), O_RDONLY)); in readMasterKey()
214 DIR* dir = opendir(mMasterKeyEntry.user_dir().c_str()); in reset()