Lines Matching refs:mount_crypt_stat

200 	struct ecryptfs_mount_crypt_stat *mount_crypt_stat)  in ecryptfs_init_global_auth_toks()  argument
207 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks()
228 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument
230 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat()
232 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat()
233 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat()
234 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat()
269 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local
270 &sbi->mount_crypt_stat; in ecryptfs_parse_options()
290 ecryptfs_init_mount_crypt_stat(mount_crypt_stat); in ecryptfs_parse_options()
299 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat, in ecryptfs_parse_options()
312 mount_crypt_stat-> in ecryptfs_parse_options()
324 mount_crypt_stat->global_default_cipher_key_size = in ecryptfs_parse_options()
329 mount_crypt_stat->flags |= in ecryptfs_parse_options()
333 mount_crypt_stat->flags |= in ecryptfs_parse_options()
337 mount_crypt_stat->flags |= in ecryptfs_parse_options()
339 mount_crypt_stat->flags |= in ecryptfs_parse_options()
345 mount_crypt_stat->global_default_fnek_sig; in ecryptfs_parse_options()
347 mount_crypt_stat->global_default_fnek_sig[ in ecryptfs_parse_options()
350 mount_crypt_stat, in ecryptfs_parse_options()
351 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
356 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
360 mount_crypt_stat->flags |= in ecryptfs_parse_options()
367 mount_crypt_stat->global_default_fn_cipher_name; in ecryptfs_parse_options()
370 mount_crypt_stat->global_default_fn_cipher_name[ in ecryptfs_parse_options()
379 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
384 mount_crypt_stat->flags |= ECRYPTFS_UNLINK_SIGS; in ecryptfs_parse_options()
387 mount_crypt_stat->flags |= in ecryptfs_parse_options()
411 strcpy(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
414 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
416 strcpy(mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
417 mount_crypt_stat->global_default_cipher_name); in ecryptfs_parse_options()
419 mount_crypt_stat->global_default_cipher_key_size = 0; in ecryptfs_parse_options()
420 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
422 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
423 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_parse_options()
426 mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
427 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_parse_options()
431 mount_crypt_stat->global_default_cipher_name); in ecryptfs_parse_options()
437 if (!ecryptfs_tfm_exists(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
440 NULL, mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
441 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_parse_options()
446 mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
447 mount_crypt_stat->global_default_cipher_key_size, in ecryptfs_parse_options()
454 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
456 mount_crypt_stat->global_default_fn_cipher_name, NULL)) { in ecryptfs_parse_options()
458 NULL, mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
459 mount_crypt_stat->global_default_fn_cipher_key_bytes); in ecryptfs_parse_options()
464 mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
465 mount_crypt_stat->global_default_fn_cipher_key_bytes, in ecryptfs_parse_options()
473 rc = ecryptfs_init_global_auth_toks(mount_crypt_stat); in ecryptfs_parse_options()
496 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_mount() local
515 mount_crypt_stat = &sbi->mount_crypt_stat; in ecryptfs_mount()
573 mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_mount()
616 ecryptfs_destroy_mount_crypt_stat(&sbi->mount_crypt_stat); in ecryptfs_mount()
635 ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat); in ecryptfs_kill_block_super()