Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 11 of 11) sorted by relevance

/system/extras/su/
Dsu.cpp30 struct passwd* pw = getpwnam(tok); in pwtoid() local
31 if (pw) { in pwtoid()
32 if (uid) *uid = pw->pw_uid; in pwtoid()
33 if (gid) *gid = pw->pw_gid; in pwtoid()
123 struct passwd* pw = getpwuid(uid); in main() local
124 if (pw) { in main()
125 setenv("LOGNAME", pw->pw_name, 1); in main()
126 setenv("USER", pw->pw_name, 1); in main()
/system/security/keystore/
Duser_state.cpp88 ResponseCode UserState::initialize(const android::String8& pw) { in initialize() argument
92 ResponseCode response = writeMasterKey(pw); in initialize()
142 ResponseCode UserState::writeMasterKey(const android::String8& pw) { in writeMasterKey() argument
144 generateKeyFromPassword(passwordKey, pw, mSalt); in writeMasterKey()
151 ResponseCode UserState::readMasterKey(const android::String8& pw) { in readMasterKey() argument
181 generateKeyFromPassword(passwordKey, pw, salt); in readMasterKey()
198 response = writeMasterKey(pw); in readMasterKey()
251 void UserState::generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw, in generateKeyFromPassword() argument
270 PKCS5_PBKDF2_HMAC(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, saltSize, 8192, in generateKeyFromPassword()
Duser_state.h63 ResponseCode initialize(const android::String8& pw);
67 ResponseCode writeMasterKey(const android::String8& pw);
68 ResponseCode readMasterKey(const android::String8& pw);
87 void generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw,
DKeyStore.h104 ResponseCode initializeUser(const android::String8& pw, uid_t userId);
107 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId);
108 ResponseCode readMasterKey(const android::String8& pw, uid_t userId);
DKeyStore.cpp81 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() argument
83 return userState->initialize(pw); in initializeUser()
92 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() argument
94 return userState->writeMasterKey(pw); in writeMasterKey()
97 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() argument
99 return userState->readMasterKey(pw); in readMasterKey()
Dkey_store_service.cpp464 Status KeyStoreService::unlock(int32_t userId, const String16& pw, int32_t* aidl_return) { in unlock() argument
489 const String8 password8(pw); in unlock()
/system/core/run-as/
Drun-as.cpp264 passwd* pw = getpwuid(uid); in main() local
265 setenv("LOGNAME", pw->pw_name, 1); in main()
266 setenv("SHELL", pw->pw_shell, 1); in main()
267 setenv("USER", pw->pw_name, 1); in main()
/system/extras/runconuid/
Drunconuid.cpp90 struct passwd* pw; in lookup_uid() local
97 if ((pw = getpwnam(c)) != 0) { in lookup_uid()
98 return pw->pw_uid; in lookup_uid()
/system/vold/
Dcryptfs.h241 int cryptfs_check_passwd(const char* pw);
242 int cryptfs_verify_passwd(const char* pw);
/system/core/adb/daemon/
Dshell_service.cpp243 passwd* pw = getpwuid(getuid()); in ForkAndExec() local
259 if (pw != nullptr) { in ForkAndExec()
260 env["HOME"] = pw->pw_dir; in ForkAndExec()
262 env["LOGNAME"] = pw->pw_name; in ForkAndExec()
263 env["SHELL"] = pw->pw_shell; in ForkAndExec()
265 env["USER"] = pw->pw_name; in ForkAndExec()
/system/timezone/input_data/android/
Dcountryzones.txt2532 isoCode:"pw"