Home
last modified time | relevance | path

Searched refs:passwd (Results 1 – 23 of 23) sorted by relevance

/system/vold/
Dcryptfs.cpp260 typedef int (*kdf_func)(const char* passwd, const unsigned char* salt, unsigned char* ikey,
1142 static int pbkdf2(const char* passwd, const unsigned char* salt, unsigned char* ikey, in pbkdf2() argument
1147 return PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), salt, SALT_LEN, HASH_COUNT, in pbkdf2()
1151 static int scrypt(const char* passwd, const unsigned char* salt, unsigned char* ikey, void* params)… in scrypt() argument
1161 crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt()
1167 static int scrypt_keymaster(const char* passwd, const unsigned char* salt, unsigned char* ikey, in scrypt_keymaster() argument
1180 rc = crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt_keymaster()
1205 static int encrypt_master_key(const char* passwd, const unsigned char* salt, in encrypt_master_key() argument
1223 if (scrypt_keymaster(passwd, salt, ikey, crypt_ftr)) { in encrypt_master_key()
1230 if (scrypt(passwd, salt, ikey, crypt_ftr)) { in encrypt_master_key()
[all …]
Dcryptfs.h65 int cryptfs_enable(int type, const char* passwd, int no_ui);
/system/core/init/
Dhost_init_verifier.cpp65 std::string passwd; in GetVendorPasswd() local
66 if (!ReadFileToString(passwd_file, &passwd)) { in GetVendorPasswd()
71 auto passwd_lines = Split(passwd, "\n"); in GetVendorPasswd()
96 passwd* getpwnam(const char* login) { // NOLINT: implementing bad function. in getpwnam()
101 static passwd static_passwd = { in getpwnam()
Dueventd_parser.cpp59 passwd* pwd = getpwnam(uid_string.c_str()); in ParsePermissionsLine()
105 passwd* pwd = getpwnam(args[2].c_str()); in ParseExternalFirmwareHandlerLine()
Dutil.cpp72 passwd* pwd = getpwnam(name.c_str()); in DecodeUid()
/system/extras/su/
Dsu.cpp30 struct passwd* pw = getpwnam(tok); in pwtoid()
123 struct passwd* pw = getpwuid(uid); in main()
/system/core/diagnose_usb/
Ddiagnose_usb.cpp54 passwd* pwd = getpwuid(getuid()); in GetUdevProblem()
/system/core/adb/
Dadb_utils.cpp293 struct passwd pwent; in adb_get_homedir_path()
294 struct passwd* result; in adb_get_homedir_path()
/system/extras/runconuid/
Drunconuid.cpp90 struct passwd* pw; in lookup_uid()
/system/core/adb/libs/adbconnection/
Dadbconnection_client.cpp50 passwd* shell = getpwnam("shell"); in SocketPeerIsTrusted()
/system/core/run-as/
Drun-as.cpp264 passwd* pw = getpwuid(uid); in main()
/system/core/libprocessgroup/setup/
Dcgroup_map_write.cpp64 passwd* uid_pwd = getpwnam(uid.c_str()); in ChangeDirModeAndOwner()
/system/libbase/
Dfile_test.cpp238 passwd* shell = getpwnam("shell"); in TEST()
/system/core/logd/
DLogStatistics.cpp342 struct passwd* pwd = getpwuid(uid); in UidToNameLocked()
360 struct passwd* pwd = getpwuid(uid); in UidToNameLocked()
/system/sepolicy/public/
Dfile.te170 # Default type for the passwd file /system/etc/passwd.
Ddomain.te150 # /(system|product|system_ext)/etc/(group|passwd), linker and its config.
/system/sepolicy/prebuilts/api/30.0/public/
Dfile.te169 # Default type for the passwd file /system/etc/passwd.
Ddomain.te139 # /(system|product|system_ext)/etc/(group|passwd), linker and its config.
/system/sepolicy/prebuilts/api/30.0/private/
Dfile_contexts321 /system/etc/passwd u:object_r:system_passwd_file:s0
426 /(product|system/product)/etc/passwd u:object_r:system_passwd_file:s0
443 /(system_ext|system/system_ext)/etc/passwd u:object_r:system_passwd_file:s0
/system/sepolicy/private/
Dfile_contexts324 /system/etc/passwd u:object_r:system_passwd_file:s0
429 /(product|system/product)/etc/passwd u:object_r:system_passwd_file:s0
446 /(system_ext|system/system_ext)/etc/passwd u:object_r:system_passwd_file:s0
/system/core/adb/daemon/
Dshell_service.cpp256 passwd* pw = getpwuid(getuid()); in ForkAndExec()
/system/core/liblog/
Dlogprint.cpp1522 struct passwd* pwd = getpwuid(entry->uid); in android_log_formatLogLine()
/system/memory/lmkd/
Dlmkd.cpp1036 struct passwd *pwdrec; in cmd_procprio()