Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 6 of 6) 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 setenv("LOGNAME", pw->pw_name, 1); in main()
126 setenv("USER", pw->pw_name, 1); in main()
/system/core/toolbox/
Dlsof.c169 struct passwd *pw; in lsof_dumpinfo() local
177 pw = getpwuid(pidstat.st_uid); in lsof_dumpinfo()
178 if (pw) { in lsof_dumpinfo()
179 strlcpy(info.user, pw->pw_name, sizeof(info.user)); in lsof_dumpinfo()
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()
Dls.c176 struct passwd *pw = getpwuid(uid); in user2str() local
177 if(pw) { in user2str()
178 strlcpy(out, pw->pw_name, out_size); in user2str()
/system/security/keystore/
Dkeystore.cpp799 ResponseCode initialize(const android::String8& pw, Entropy* entropy) { in initialize() argument
803 ResponseCode response = writeMasterKey(pw, entropy); in initialize()
823 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() argument
825 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, mSalt); in writeMasterKey()
832 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() argument
853 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt); in readMasterKey()
868 response = writeMasterKey(pw, entropy); in readMasterKey()
929 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw, in generateKeyFromPassword() argument
941 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, in generateKeyFromPassword()
1040 ResponseCode initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() argument
[all …]
/system/vold/
Dcryptfs.h218 int cryptfs_check_passwd(char *pw);