Home | History | Annotate | Download | only in vold

Lines Matching full:crypt_mnt_ftr

145 static int put_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr,
191 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
244 static int get_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr,
297 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
318 if (crypt_ftr->ftr_size > sizeof(struct crypt_mnt_ftr)) {
322 if (lseek(fd, crypt_ftr->ftr_size - sizeof(struct crypt_mnt_ftr), SEEK_CUR) == -1) {
380 static int create_crypto_blk_dev(struct crypt_mnt_ftr *crypt_ftr, unsigned char *master_key,
735 struct crypt_mnt_ftr crypt_ftr;
781 struct crypt_mnt_ftr crypt_ftr;
885 struct crypt_mnt_ftr sd_crypt_ftr;
934 struct crypt_mnt_ftr crypt_ftr;
983 /* Initialize a crypt_mnt_ftr structure. The keysize is
988 static void cryptfs_init_crypt_mnt_ftr(struct crypt_mnt_ftr *ftr)
993 ftr->ftr_size = sizeof(struct crypt_mnt_ftr);
1142 struct crypt_mnt_ftr crypt_ftr, sd_crypt_ftr;;
1301 /* Initialize a crypt_mnt_ftr for the partition */
1453 struct crypt_mnt_ftr crypt_ftr;