Home
last modified time | relevance | path

Searched refs:crypto_cfg (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/block/
H A Dblk-crypto.c208 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
285 &bc_key->crypto_cfg)) in __blk_crypto_bio_prep()
342 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
343 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()
344 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
382 if (blk_ksm_crypto_cfg_supported(q->ksm, &key->crypto_cfg)) in blk_crypto_start_using_key()
384 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
408 if (blk_ksm_crypto_cfg_supported(q->ksm, &key->crypto_cfg)) in blk_crypto_evict_key()
H A Dblk-crypto-fallback.c111 key->crypto_cfg.crypto_mode; in blk_crypto_keyslot_program()
280 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
387 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()
492 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()
499 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
/kernel/linux/linux-6.6/block/
H A Dblk-crypto.c216 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
294 &bc_key->crypto_cfg)) in __blk_crypto_bio_prep()
350 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
351 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()
352 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
397 if (blk_crypto_config_supported_natively(bdev, &key->crypto_cfg)) in blk_crypto_start_using_key()
399 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
423 if (blk_crypto_config_supported_natively(bdev, &key->crypto_cfg)) in blk_crypto_evict_key()
H A Dblk-crypto-fallback.c114 key->crypto_cfg.crypto_mode; in blk_crypto_fallback_keyslot_program()
282 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
390 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()
496 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()
503 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
/kernel/linux/linux-6.6/fs/crypto/
H A Dinline_crypt.c97 struct blk_crypto_config crypto_cfg; in fscrypt_select_encryption_impl() local
131 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()
132 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
133 crypto_cfg.dun_bytes = fscrypt_get_dun_bytes(ci); in fscrypt_select_encryption_impl()
140 if (!blk_crypto_config_supported(devs[i], &crypto_cfg)) in fscrypt_select_encryption_impl()
144 fscrypt_log_blk_crypto_impl(ci->ci_mode, devs, num_devs, &crypto_cfg); in fscrypt_select_encryption_impl()
/kernel/linux/linux-5.10/fs/crypto/
H A Dinline_crypt.c71 struct blk_crypto_config crypto_cfg; in fscrypt_select_encryption_impl() local
105 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()
106 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
107 crypto_cfg.dun_bytes = fscrypt_get_dun_bytes(ci); in fscrypt_select_encryption_impl()
115 if (!blk_crypto_config_supported(devs[i], &crypto_cfg)) in fscrypt_select_encryption_impl()
/kernel/linux/linux-5.10/drivers/scsi/ufs/
H A Dufshcd-crypto.c58 &ufs_crypto_algs[key->crypto_cfg.crypto_mode]; in ufshcd_crypto_keyslot_program()
59 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Dcqhci-crypto.c70 &cqhci_crypto_algs[key->crypto_cfg.crypto_mode]; in cqhci_crypto_keyslot_program()
71 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in cqhci_crypto_keyslot_program()
/kernel/linux/linux-6.6/drivers/ufs/core/
H A Dufshcd-crypto.c59 &ufs_crypto_algs[key->crypto_cfg.crypto_mode]; in ufshcd_crypto_keyslot_program()
60 u8 data_unit_mask = key->crypto_cfg.data_unit_size / 512; in ufshcd_crypto_keyslot_program()
/kernel/linux/linux-5.10/include/linux/
H A Dblk-crypto.h37 * @crypto_cfg: the crypto configuration (like crypto_mode, key size) for this
40 * @size: size of this key in bytes (determined by @crypto_cfg.crypto_mode)
48 struct blk_crypto_config crypto_cfg; member
/kernel/linux/linux-6.6/include/linux/
H A Dblk-crypto.h38 * @crypto_cfg: the crypto configuration (like crypto_mode, key size) for this
41 * @size: size of this key in bytes (determined by @crypto_cfg.crypto_mode)
49 struct blk_crypto_config crypto_cfg; member

Completed in 10 milliseconds