Lines Matching refs:crypt_mnt_ftr
197 static int keymaster_create_key(struct crypt_mnt_ftr *ftr) in keymaster_create_key()
289 static int keymaster_sign_object(struct crypt_mnt_ftr *ftr, in keymaster_sign_object()
484 static void get_device_scrypt_params(struct crypt_mnt_ftr *ftr) { in get_device_scrypt_params()
587 static void set_ftr_sha(struct crypt_mnt_ftr *crypt_ftr) in set_ftr_sha()
599 static int put_crypt_ftr_and_key(struct crypt_mnt_ftr *crypt_ftr) in put_crypt_ftr_and_key()
632 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in put_crypt_ftr_and_key()
655 static bool check_ftr_sha(const struct crypt_mnt_ftr *crypt_ftr) in check_ftr_sha()
657 struct crypt_mnt_ftr copy; in check_ftr_sha()
685 static void upgrade_crypt_ftr(int fd, struct crypt_mnt_ftr *crypt_ftr, off64_t offset) in upgrade_crypt_ftr()
745 unix_write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr)); in upgrade_crypt_ftr()
750 static int get_crypt_ftr_and_key(struct crypt_mnt_ftr *crypt_ftr) in get_crypt_ftr_and_key()
785 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in get_crypt_ftr_and_key()
821 static int validate_persistent_data_storage(struct crypt_mnt_ftr *crypt_ftr) in validate_persistent_data_storage()
846 struct crypt_mnt_ftr crypt_ftr; in load_persistent_data()
939 struct crypt_mnt_ftr crypt_ftr; in save_persistent_data()
1063 static int load_crypto_mapping_table(struct crypt_mnt_ftr *crypt_ftr, in load_crypto_mapping_table()
1154 static int create_crypto_blk_dev(struct crypt_mnt_ftr *crypt_ftr,
1272 struct crypt_mnt_ftr *ftr = (struct crypt_mnt_ftr *) params;
1295 struct crypt_mnt_ftr *ftr = (struct crypt_mnt_ftr *) params;
1331 struct crypt_mnt_ftr *crypt_ftr)
1460 static void get_kdf_func(struct crypt_mnt_ftr *ftr, kdf_func *kdf, void** kdf_params)
1475 struct crypt_mnt_ftr *crypt_ftr,
1495 struct crypt_mnt_ftr *crypt_ftr) {
1592 struct crypt_mnt_ftr crypt_ftr;
1771 struct crypt_mnt_ftr crypt_ftr;
1825 static int test_mount_encrypted_fs(struct crypt_mnt_ftr* crypt_ftr,
1991 struct crypt_mnt_ftr ext_crypt_ftr;
2014 int check_unmounted_and_get_ftr(struct crypt_mnt_ftr* crypt_ftr)
2040 struct crypt_mnt_ftr crypt_ftr;
2091 struct crypt_mnt_ftr crypt_ftr;
2141 static int cryptfs_init_crypt_mnt_ftr(struct crypt_mnt_ftr *ftr)
2145 memset(ftr, 0, sizeof(struct crypt_mnt_ftr));
2149 ftr->ftr_size = sizeof(struct crypt_mnt_ftr);
2884 static int cryptfs_enable_all_volumes(struct crypt_mnt_ftr *crypt_ftr, int how,
2944 struct crypt_mnt_ftr crypt_ftr;
3327 struct crypt_mnt_ftr crypt_ftr;
3381 struct crypt_mnt_ftr crypt_ftr;
3740 struct crypt_mnt_ftr crypt_ftr;
3793 int cryptfs_create_default_ftr(struct crypt_mnt_ftr* crypt_ftr, __attribute__((unused))int key_leng…
3810 int cryptfs_get_master_key(struct crypt_mnt_ftr* ftr, const char* password,
3852 int cryptfs_set_password(struct crypt_mnt_ftr* ftr, const char* password,