Searched refs:mMasterKeyEntry (Results 1 – 2 of 2) sorted by relevance
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()85 return unlink(mMasterKeyEntry.getKeyBlobPath().c_str()) == 0 || errno == ENOENT; in deleteMasterKey()125 int out = TEMP_FAILURE_RETRY(open(mMasterKeyEntry.getKeyBlobPath().c_str(), in copyMasterKeyFile()136 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()[all …]
51 const std::string& getUserDirName() const { return mMasterKeyEntry.user_dir(); } in getUserDirName()53 std::string getMasterKeyFileName() const { return mMasterKeyEntry.getKeyBlobPath(); } in getMasterKeyFileName()93 KeyBlobEntry mMasterKeyEntry; variable