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