Lines Matching refs:crypt_mnt_ftr
108 static void get_device_scrypt_params(struct crypt_mnt_ftr *ftr) {
239 static int put_crypt_ftr_and_key(struct crypt_mnt_ftr *crypt_ftr)
270 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
313 * absolute offset to the start of the crypt_mnt_ftr on the passed in fd.
315 static void upgrade_crypt_ftr(int fd, struct crypt_mnt_ftr *crypt_ftr, off64_t offset)
367 unix_write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr));
372 static int get_crypt_ftr_and_key(struct crypt_mnt_ftr *crypt_ftr)
407 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
443 static int validate_persistent_data_storage(struct crypt_mnt_ftr *crypt_ftr)
468 struct crypt_mnt_ftr crypt_ftr;
562 struct crypt_mnt_ftr crypt_ftr;
687 static int load_crypto_mapping_table(struct crypt_mnt_ftr *crypt_ftr, unsigned char *master_key,
767 static int create_crypto_blk_dev(struct crypt_mnt_ftr *crypt_ftr, unsigned char *master_key,
878 struct crypt_mnt_ftr *ftr = (struct crypt_mnt_ftr *) params;
892 struct crypt_mnt_ftr *crypt_ftr)
961 static void get_kdf_func(struct crypt_mnt_ftr *ftr, kdf_func *kdf, void** kdf_params)
973 struct crypt_mnt_ftr *crypt_ftr)
990 struct crypt_mnt_ftr *crypt_ftr) {
1155 struct crypt_mnt_ftr crypt_ftr;
1196 struct crypt_mnt_ftr crypt_ftr;
1316 struct crypt_mnt_ftr sd_crypt_ftr;
1363 struct crypt_mnt_ftr crypt_ftr;
1408 /* Initialize a crypt_mnt_ftr structure. The keysize is
1413 static void cryptfs_init_crypt_mnt_ftr(struct crypt_mnt_ftr *ftr)
1417 memset(ftr, 0, sizeof(struct crypt_mnt_ftr));
1421 ftr->ftr_size = sizeof(struct crypt_mnt_ftr);
1594 struct crypt_mnt_ftr crypt_ftr, sd_crypt_ftr;;
1754 /* Initialize a crypt_mnt_ftr for the partition */
1921 struct crypt_mnt_ftr crypt_ftr;
1966 struct crypt_mnt_ftr crypt_ftr;
2047 struct crypt_mnt_ftr crypt_ftr;