Searched refs:crypto_mode (Results 1 – 4 of 4) sorted by relevance
76 enum blk_crypto_mode_num crypto_mode; member94 enum blk_crypto_mode_num crypto_mode = slotp->crypto_mode; in blk_crypto_fallback_evict_keyslot() local97 WARN_ON(slotp->crypto_mode == BLK_ENCRYPTION_MODE_INVALID); in blk_crypto_fallback_evict_keyslot()100 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_fallback_evict_keyslot()101 blk_crypto_modes[crypto_mode].keysize); in blk_crypto_fallback_evict_keyslot()103 slotp->crypto_mode = BLK_ENCRYPTION_MODE_INVALID; in blk_crypto_fallback_evict_keyslot()112 const enum blk_crypto_mode_num crypto_mode = in blk_crypto_fallback_keyslot_program() local113 key->crypto_cfg.crypto_mode; in blk_crypto_fallback_keyslot_program()116 if (crypto_mode != slotp->crypto_mode && in blk_crypto_fallback_keyslot_program()117 slotp->crypto_mode != BLK_ENCRYPTION_MODE_INVALID) in blk_crypto_fallback_keyslot_program()[all …]
344 enum blk_crypto_mode_num crypto_mode, in blk_crypto_init_key() argument352 if (crypto_mode >= ARRAY_SIZE(blk_crypto_modes)) in blk_crypto_init_key()355 mode = &blk_crypto_modes[crypto_mode]; in blk_crypto_init_key()376 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()433 return blk_crypto_fallback_start_using_mode(key->crypto_cfg.crypto_mode); in blk_crypto_start_using_key()
338 if (!(ksm->crypto_modes_supported[cfg->crypto_mode] & in blk_ksm_crypto_cfg_supported()
360 if (!(profile->modes_supported[cfg->crypto_mode] & cfg->data_unit_size)) in __blk_crypto_cfg_supported()