• Home
  • Raw
  • Download

Lines Matching refs:ftr

108 static void get_device_scrypt_params(struct crypt_mnt_ftr *ftr) {  in get_device_scrypt_params()  argument
148 ftr->N_factor = params[0]; in get_device_scrypt_params()
149 ftr->r_factor = params[1]; in get_device_scrypt_params()
150 ftr->p_factor = params[2]; in get_device_scrypt_params()
878 struct crypt_mnt_ftr *ftr = (struct crypt_mnt_ftr *) params; in scrypt() local
880 int N = 1 << ftr->N_factor; in scrypt()
881 int r = 1 << ftr->r_factor; in scrypt()
882 int p = 1 << ftr->p_factor; in scrypt()
961 static void get_kdf_func(struct crypt_mnt_ftr *ftr, kdf_func *kdf, void** kdf_params) in get_kdf_func() argument
963 if (ftr->kdf_type == KDF_SCRYPT) { in get_kdf_func()
965 *kdf_params = ftr; in get_kdf_func()
1413 static void cryptfs_init_crypt_mnt_ftr(struct crypt_mnt_ftr *ftr) in cryptfs_init_crypt_mnt_ftr() argument
1417 memset(ftr, 0, sizeof(struct crypt_mnt_ftr)); in cryptfs_init_crypt_mnt_ftr()
1418 ftr->magic = CRYPT_MNT_MAGIC; in cryptfs_init_crypt_mnt_ftr()
1419 ftr->major_version = CURRENT_MAJOR_VERSION; in cryptfs_init_crypt_mnt_ftr()
1420 ftr->minor_version = CURRENT_MINOR_VERSION; in cryptfs_init_crypt_mnt_ftr()
1421 ftr->ftr_size = sizeof(struct crypt_mnt_ftr); in cryptfs_init_crypt_mnt_ftr()
1422 ftr->keysize = KEY_LEN_BYTES; in cryptfs_init_crypt_mnt_ftr()
1424 ftr->kdf_type = KDF_SCRYPT; in cryptfs_init_crypt_mnt_ftr()
1425 get_device_scrypt_params(ftr); in cryptfs_init_crypt_mnt_ftr()
1427 ftr->persist_data_size = CRYPT_PERSIST_DATA_SIZE; in cryptfs_init_crypt_mnt_ftr()
1429 ftr->persist_data_offset[0] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET; in cryptfs_init_crypt_mnt_ftr()
1430 ftr->persist_data_offset[1] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET + in cryptfs_init_crypt_mnt_ftr()
1431 ftr->persist_data_size; in cryptfs_init_crypt_mnt_ftr()