Searched refs:ci_mode (Results 1 – 5 of 5) sorted by relevance
/fs/crypto/ |
D | keysetup_v1.c | 200 if (ci->ci_mode != dk->dk_mode) in find_or_insert_direct_key() 204 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key() 235 dk->dk_mode = ci->ci_mode; in fscrypt_get_direct_key() 236 err = fscrypt_prepare_key(&dk->dk_key, raw_key, ci->ci_mode->keysize, in fscrypt_get_direct_key() 242 memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); in fscrypt_get_direct_key() 276 derived_key = kmalloc(ci->ci_mode->keysize, GFP_KERNEL); in setup_v1_file_key_derived() 281 derived_key, ci->ci_mode->keysize); in setup_v1_file_key_derived() 307 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings() 311 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
|
D | keysetup.c | 137 if (WARN_ON(is_hw_wrapped || raw_key_size != ci->ci_mode->keysize)) in fscrypt_prepare_key() 140 tfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci->ci_inode); in fscrypt_prepare_key() 166 ci->ci_mode->keysize, in fscrypt_set_per_file_enc_key() 177 struct fscrypt_mode *mode = ci->ci_mode; in setup_per_mode_enc_key() 384 derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 389 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 427 min_keysize = ci->ci_mode->keysize; in fscrypt_valid_master_key_size() 429 min_keysize = ci->ci_mode->security_strength; in fscrypt_valid_master_key_size() 594 crypt_info->ci_mode = mode; in fscrypt_setup_encryption_info()
|
D | inline_crypt.c | 84 if (ci->ci_mode->blk_crypto_mode == BLK_ENCRYPTION_MODE_INVALID) in fscrypt_select_encryption_impl() 108 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl() 138 enum blk_crypto_mode_num crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_prepare_inline_crypt_key() 247 for (i = 0; i < ci->ci_mode->ivsize/sizeof(dun[0]); i++) in fscrypt_generate_dun()
|
D | crypto.c | 85 memset(iv, 0, ci->ci_mode->ivsize); in fscrypt_generate_iv()
|
D | fscrypt_private.h | 215 struct fscrypt_mode *ci_mode; member
|