Lines Matching refs:passwd

1250 static int pbkdf2(const char *passwd, const unsigned char *salt,  argument
1256 PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd),
1263 static int scrypt(const char *passwd, const unsigned char *salt, argument
1276 crypto_scrypt((const uint8_t*)passwd, strlen(passwd),
1283 static int scrypt_keymaster(const char *passwd, const unsigned char *salt, argument
1297 rc = crypto_scrypt((const uint8_t*)passwd, strlen(passwd),
1324 static int encrypt_master_key(const char *passwd, const unsigned char *salt, argument
1344 if (scrypt_keymaster(passwd, salt, ikey, crypt_ftr)) {
1351 if (scrypt(passwd, salt, ikey, crypt_ftr)) {
1407 static int decrypt_master_key_aux(const char *passwd, unsigned char *salt, argument
1420 if (kdf(passwd, salt, ikey, kdf_params)) {
1470 static int decrypt_master_key(const char *passwd, unsigned char *decrypted_master_key, argument
1480 ret = decrypt_master_key_aux(passwd, crypt_ftr->salt, crypt_ftr->master_key,
1490 static int create_encrypted_random_key(char *passwd, unsigned char *master_key, unsigned char *salt, argument
1502 return encrypt_master_key(passwd, salt, key_buf, master_key, crypt_ftr);
1822 char *passwd, char *mount_point, char *label) argument
1840 if (decrypt_master_key(passwd, decrypted_master_key, crypt_ftr,
1852 if(!set_hw_device_encryption_key(passwd, (char*) crypt_ftr->crypto_type_name)) {
1935 rc = encrypt_master_key(passwd, crypt_ftr->salt, saved_master_key,
2028 int cryptfs_check_passwd(char *passwd) argument
2032 return e4crypt_check_passwd(DATA_MNT_POINT, passwd);
2042 rc = test_mount_encrypted_fs(&crypt_ftr, passwd,
2047 password = strdup(passwd);
2056 int cryptfs_verify_passwd(char *passwd) argument
2089 decrypt_master_key(passwd, decrypted_master_key, &crypt_ftr, 0, 0);
2895 int cryptfs_enable_internal(char *howarg, int crypt_type, char *passwd, argument
3057 rc = set_hw_device_encryption_key(passwd,
3066 if (create_encrypted_random_key(passwd, crypt_ftr.master_key, crypt_ftr.salt, &crypt_ftr)) {
3101 decrypt_master_key(passwd, decrypted_master_key, &crypt_ftr, 0, 0);
3226 int cryptfs_enable(char *howarg, int type, char *passwd, int allow_reboot) argument
3228 return cryptfs_enable_internal(howarg, type, passwd, allow_reboot);