Home
last modified time | relevance | path

Searched refs:ci_policy (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/fs/crypto/
Dkeysetup.c339 if (ci->ci_policy.v2.flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) { in fscrypt_setup_v2_file_key()
350 } else if (ci->ci_policy.v2.flags & in fscrypt_setup_v2_file_key()
361 } else if (ci->ci_policy.v2.flags & in fscrypt_setup_v2_file_key()
412 if (ci->ci_policy.version == FSCRYPT_POLICY_V1) in fscrypt_valid_master_key_size()
452 err = fscrypt_policy_to_key_spec(&ci->ci_policy, &mk_spec); in setup_file_encryption_key()
468 fscrypt_policies_equal(dummy_policy, &ci->ci_policy)) { in setup_file_encryption_key()
476 if (ci->ci_policy.version != FSCRYPT_POLICY_V1) in setup_file_encryption_key()
500 switch (ci->ci_policy.version) { in setup_file_encryption_key()
574 crypt_info->ci_policy = *policy; in fscrypt_setup_encryption_info()
577 mode = select_encryption_mode(&crypt_info->ci_policy, inode); in fscrypt_setup_encryption_info()
[all …]
Dkeysetup_v1.c194 memcpy(&hash_key, ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key()
199 if (memcmp(ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key()
242 memcpy(dk->dk_descriptor, ci->ci_policy.v1.master_key_descriptor, in fscrypt_get_direct_key()
296 if (ci->ci_policy.v1.flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) in fscrypt_setup_v1_file_key()
311 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
315 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
Dinline_crypt.c45 unsigned int flags = fscrypt_policy_flags(&ci->ci_policy); in fscrypt_get_dun_bytes()
121 if ((fscrypt_policy_flags(&ci->ci_policy) & in fscrypt_select_encryption_impl()
471 if (!(fscrypt_policy_flags(&ci->ci_policy) & in fscrypt_limit_io_blocks()
Dpolicy.c442 *policy = ci->ci_policy; in fscrypt_get_policy()
728 return &dir->i_crypt_info->ci_policy; in fscrypt_policy_to_inherit()
756 return fscrypt_new_context(ctx, &ci->ci_policy, ci->ci_nonce); in fscrypt_context_for_new_inode()
784 if (ci->ci_policy.version == FSCRYPT_POLICY_V2 && in fscrypt_set_context()
785 (ci->ci_policy.v2.flags & FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32)) in fscrypt_set_context()
Dhooks.c201 if (ci->ci_policy.version != FSCRYPT_POLICY_V2) in fscrypt_prepare_setflags()
Dcrypto.c90 u8 flags = fscrypt_policy_flags(&ci->ci_policy); in fscrypt_generate_iv()
Dfscrypt_private.h287 union fscrypt_policy ci_policy; member
Dfname.c296 return __fscrypt_fname_encrypted_size(&inode->i_crypt_info->ci_policy, in fscrypt_fname_encrypted_size()