Lines Matching refs:crypto_mode
76 enum blk_crypto_mode_num crypto_mode; member
94 enum blk_crypto_mode_num crypto_mode = slotp->crypto_mode; in blk_crypto_fallback_evict_keyslot() local
97 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() local
113 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()
120 slotp->crypto_mode = crypto_mode; in blk_crypto_fallback_keyslot_program()
121 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw, in blk_crypto_fallback_keyslot_program()
197 ciph_req = skcipher_request_alloc(slotp->tfms[slotp->crypto_mode], in blk_crypto_fallback_alloc_cipher_req()
497 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()