Lines Matching defs:passwd
494 static void pbkdf2(char *passwd, unsigned char *salt, unsigned char *ikey)
497 PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), salt, SALT_LEN,
501 static int encrypt_master_key(char *passwd, unsigned char *salt,
510 pbkdf2(passwd, salt, ikey);
538 static int decrypt_master_key(char *passwd, unsigned char *salt,
547 pbkdf2(passwd, salt, ikey);
570 static int create_encrypted_random_key(char *passwd, unsigned char *master_key, unsigned char *salt)
584 return encrypt_master_key(passwd, salt, key_buf, master_key);
779 static int test_mount_encrypted_fs(char *passwd, char *mount_point, char *label)
809 decrypt_master_key(passwd, salt, encrypted_master_key, decrypted_master_key);
923 int cryptfs_check_passwd(char *passwd)
927 rc = test_mount_encrypted_fs(passwd, DATA_MNT_POINT, "userdata");
932 int cryptfs_verify_passwd(char *passwd)
969 decrypt_master_key(passwd, salt, encrypted_master_key, decrypted_master_key);
1134 int cryptfs_enable(char *howarg, char *passwd)
1312 if (create_encrypted_random_key(passwd, master_key, salt)) {
1320 decrypt_master_key(passwd, salt, master_key, decrypted_master_key);