Searched refs:ci_mode (Results 1 – 5 of 5) sorted by relevance
/fs/crypto/ |
D | keysetup_v1.c | 202 if (ci->ci_mode != dk->dk_mode) in find_or_insert_direct_key() 206 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key() 238 dk->dk_mode = ci->ci_mode; in fscrypt_get_direct_key() 244 memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); in fscrypt_get_direct_key() 278 derived_key = kmalloc(ci->ci_mode->keysize, GFP_KERNEL); in setup_v1_file_key_derived() 283 derived_key, ci->ci_mode->keysize); in setup_v1_file_key_derived() 309 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings() 313 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
|
D | keysetup.c | 157 ci->ci_mode->keysize, in fscrypt_prepare_key() 160 tfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci->ci_inode); in fscrypt_prepare_key() 196 struct fscrypt_mode *mode = ci->ci_mode; in setup_per_mode_enc_key() 404 derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 409 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 447 min_keysize = ci->ci_mode->keysize; in fscrypt_valid_master_key_size() 449 min_keysize = ci->ci_mode->security_strength; in fscrypt_valid_master_key_size() 628 crypt_info->ci_mode = mode; in fscrypt_setup_encryption_info()
|
D | inline_crypt.c | 107 if (ci->ci_mode->blk_crypto_mode == BLK_ENCRYPTION_MODE_INVALID) in fscrypt_select_encryption_impl() 131 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl() 147 fscrypt_log_blk_crypto_impl(ci->ci_mode, devs, num_devs, &crypto_cfg); in fscrypt_select_encryption_impl() 163 enum blk_crypto_mode_num crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_prepare_inline_crypt_key() 281 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 | 270 struct fscrypt_mode *ci_mode; member
|