Home
last modified time | relevance | path

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

/system/extras/su/
Dsu.c31 struct passwd* pw = getpwnam(tok); in pwtoid() local
32 if (pw) { in pwtoid()
33 if (uid) *uid = pw->pw_uid; in pwtoid()
34 if (gid) *gid = pw->pw_gid; in pwtoid()
124 struct passwd* pw = getpwuid(uid); in main() local
125 if (pw) { in main()
126 setenv("LOGNAME", pw->pw_name, 1); in main()
127 setenv("USER", pw->pw_name, 1); in main()
/system/security/keystore/
Duser_state.cpp79 ResponseCode UserState::initialize(const android::String8& pw, Entropy* entropy) { in initialize() argument
83 ResponseCode response = writeMasterKey(pw, entropy); in initialize()
133 ResponseCode UserState::writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() argument
135 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, mSalt); in writeMasterKey()
142 ResponseCode UserState::readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() argument
163 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt); in readMasterKey()
177 response = writeMasterKey(pw, entropy); in readMasterKey()
228 void UserState::generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw, in generateKeyFromPassword() argument
240 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, saltSize, in generateKeyFromPassword()
Duser_state.h50 ResponseCode initialize(const android::String8& pw, Entropy* entropy);
54 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy);
55 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy);
69 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw,
Dkeystore.h50 ResponseCode initializeUser(const android::String8& pw, uid_t userId);
53 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId);
54 ResponseCode readMasterKey(const android::String8& pw, uid_t userId);
Dkeystore.cpp63 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() argument
65 return userState->initialize(pw, mEntropy); in initializeUser()
74 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() argument
76 return userState->writeMasterKey(pw, mEntropy); in writeMasterKey()
79 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() argument
81 return userState->readMasterKey(pw, mEntropy); in readMasterKey()
Dkey_store_service.h54 int32_t unlock(int32_t userId, const String16& pw);
Dkey_store_service.cpp238 int32_t KeyStoreService::unlock(int32_t userId, const String16& pw) { in unlock() argument
259 const String8 password8(pw); in unlock()
/system/core/run-as/
Drun-as.c209 struct passwd* pw = getpwuid(uid); in main() local
210 setenv("LOGNAME", pw->pw_name, 1); in main()
211 setenv("SHELL", pw->pw_shell, 1); in main()
212 setenv("USER", pw->pw_name, 1); in main()
/system/core/toolbox/
Dps.c58 struct passwd *pw; in ps_line() local
150 pw = getpwuid(stats.st_uid); in ps_line()
151 if(pw == 0 || (display_flags & SHOW_NUMERIC_UID)) { in ps_line()
154 strcpy(user,pw->pw_name); in ps_line()
/system/core/adb/
Dshell_service.cpp248 passwd* pw = getpwuid(getuid()); in ForkAndExec() local
264 if (pw != nullptr) { in ForkAndExec()
266 env["HOME"] = pw->pw_dir; in ForkAndExec()
267 env["LOGNAME"] = pw->pw_name; in ForkAndExec()
268 env["USER"] = pw->pw_name; in ForkAndExec()
269 env["SHELL"] = pw->pw_shell; in ForkAndExec()
/system/vold/
Dcryptfs.h231 int cryptfs_check_passwd(char *pw);