Lines Matching refs:crypto_mode
77 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()
121 slotp->crypto_mode = crypto_mode; in blk_crypto_fallback_keyslot_program()
122 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->raw, in blk_crypto_fallback_keyslot_program()
196 ciph_req = skcipher_request_alloc(slotp->tfms[slotp->crypto_mode], in blk_crypto_fallback_alloc_cipher_req()
496 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()