• Home
  • Raw
  • Download

Lines Matching refs:mount_crypt_stat

229 	struct ecryptfs_mount_crypt_stat *mount_crypt_stat)  in ecryptfs_init_global_auth_toks()  argument
235 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks()
255 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument
257 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat()
259 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat()
260 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat()
261 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat()
294 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local
295 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_parse_options()
312 ecryptfs_init_mount_crypt_stat(mount_crypt_stat); in ecryptfs_parse_options()
321 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat, in ecryptfs_parse_options()
334 mount_crypt_stat-> in ecryptfs_parse_options()
346 mount_crypt_stat->global_default_cipher_key_size = in ecryptfs_parse_options()
351 mount_crypt_stat->flags |= in ecryptfs_parse_options()
355 mount_crypt_stat->flags |= in ecryptfs_parse_options()
359 mount_crypt_stat->flags |= in ecryptfs_parse_options()
361 mount_crypt_stat->flags |= in ecryptfs_parse_options()
367 mount_crypt_stat->global_default_fnek_sig; in ecryptfs_parse_options()
369 mount_crypt_stat->global_default_fnek_sig[ in ecryptfs_parse_options()
372 mount_crypt_stat, in ecryptfs_parse_options()
373 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
378 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
382 mount_crypt_stat->flags |= in ecryptfs_parse_options()
389 mount_crypt_stat->global_default_fn_cipher_name; in ecryptfs_parse_options()
392 mount_crypt_stat->global_default_fn_cipher_name[ in ecryptfs_parse_options()
401 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
423 strcpy(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
426 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
428 strcpy(mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
429 mount_crypt_stat->global_default_cipher_name); in ecryptfs_parse_options()
431 mount_crypt_stat->global_default_cipher_key_size = 0; in ecryptfs_parse_options()
432 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
434 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
435 mount_crypt_stat->global_default_cipher_key_size; 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()