Lines Matching defs:passwd
482 static void pbkdf2(char *passwd, unsigned char *salt, unsigned char *ikey)
485 PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), salt, SALT_LEN,
489 static int encrypt_master_key(char *passwd, unsigned char *salt,
498 pbkdf2(passwd, salt, ikey);
526 static int decrypt_master_key(char *passwd, unsigned char *salt,
535 pbkdf2(passwd, salt, ikey);
558 static int create_encrypted_random_key(char *passwd, unsigned char *master_key, unsigned char *salt)
572 return encrypt_master_key(passwd, salt, key_buf, master_key);
760 static int test_mount_encrypted_fs(char *passwd, char *mount_point, char *label)
790 decrypt_master_key(passwd, salt, encrypted_master_key, decrypted_master_key);
904 int cryptfs_check_passwd(char *passwd)
908 rc = test_mount_encrypted_fs(passwd, DATA_MNT_POINT, "userdata");
913 int cryptfs_verify_passwd(char *passwd)
950 decrypt_master_key(passwd, salt, encrypted_master_key, decrypted_master_key);
1115 int cryptfs_enable(char *howarg, char *passwd)
1283 if (create_encrypted_random_key(passwd, master_key, salt)) {
1291 decrypt_master_key(passwd, salt, master_key, decrypted_master_key);