Home
last modified time | relevance | path

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

/linux-6.6.21/block/
Dblk-crypto-fallback.c77 enum blk_crypto_mode_num crypto_mode; member
95 enum blk_crypto_mode_num crypto_mode = slotp->crypto_mode; in blk_crypto_fallback_evict_keyslot() local
98 WARN_ON(slotp->crypto_mode == BLK_ENCRYPTION_MODE_INVALID); in blk_crypto_fallback_evict_keyslot()
101 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_fallback_evict_keyslot()
102 blk_crypto_modes[crypto_mode].keysize); in blk_crypto_fallback_evict_keyslot()
104 slotp->crypto_mode = BLK_ENCRYPTION_MODE_INVALID; in blk_crypto_fallback_evict_keyslot()
113 const enum blk_crypto_mode_num crypto_mode = in blk_crypto_fallback_keyslot_program() local
114 key->crypto_cfg.crypto_mode; in blk_crypto_fallback_keyslot_program()
117 if (crypto_mode != slotp->crypto_mode && in blk_crypto_fallback_keyslot_program()
118 slotp->crypto_mode != BLK_ENCRYPTION_MODE_INVALID) in blk_crypto_fallback_keyslot_program()
[all …]
Dblk-crypto.c329 enum blk_crypto_mode_num crypto_mode, in blk_crypto_init_key() argument
337 if (crypto_mode >= ARRAY_SIZE(blk_crypto_modes)) in blk_crypto_init_key()
340 mode = &blk_crypto_modes[crypto_mode]; in blk_crypto_init_key()
350 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
399 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
Dblk-crypto-profile.c351 if (!(profile->modes_supported[cfg->crypto_mode] & cfg->data_unit_size)) in __blk_crypto_cfg_supported()
/linux-6.6.21/include/linux/
Dblk-crypto.h31 enum blk_crypto_mode_num crypto_mode; member
91 enum blk_crypto_mode_num crypto_mode,
/linux-6.6.21/fs/crypto/
Dinline_crypt.c131 crypto_cfg.crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_select_encryption_impl()
159 enum blk_crypto_mode_num crypto_mode = ci->ci_mode->blk_crypto_mode; in fscrypt_prepare_inline_crypt_key() local
170 err = blk_crypto_init_key(blk_key, raw_key, crypto_mode, in fscrypt_prepare_inline_crypt_key()
/linux-6.6.21/drivers/mmc/host/
Dcqhci-crypto.c70 &cqhci_crypto_algs[key->crypto_cfg.crypto_mode]; in cqhci_crypto_keyslot_program()
/linux-6.6.21/drivers/ufs/core/
Dufshcd-crypto.c59 &ufs_crypto_algs[key->crypto_cfg.crypto_mode]; in ufshcd_crypto_keyslot_program()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dcore.c26 module_param_named(crypto_mode, ath11k_crypto_mode, uint, 0644);
27 MODULE_PARM_DESC(crypto_mode, "crypto mode: 0-hardware, 1-software");