Lines Matching refs:blk_key
167 void inline_crypt_bio(struct blk_crypto_key *blk_key, struct bio *bio) in inline_crypt_bio() argument
174 bio_crypt_set_ctx(bio, blk_key, iv.dun, GFP_NOIO); in inline_crypt_bio()
179 struct blk_crypto_key *blk_key = NULL; in inline_crypto_init() local
183 blk_key = kzalloc(sizeof(struct blk_crypto_key), GFP_KERNEL); in inline_crypto_init()
184 if (!blk_key) { in inline_crypto_init()
188 ret = blk_crypto_init_key(blk_key, key, HP_CIPHER_MODE, dun_bytes, PAGE_SIZE); in inline_crypto_init()
194 return blk_key; in inline_crypto_init()
196 if (blk_key) in inline_crypto_init()
197 kfree_sensitive(blk_key); in inline_crypto_init()
202 void inline_crypt_bio(struct blk_crypto_key *blk_key, struct bio *bio) {} in inline_crypt_bio() argument
220 dev->blk_key = inline_crypto_init(key); in crypto_init()
221 ret = dev->blk_key; in crypto_init()
236 if (dev->blk_key) { in crypto_deinit()
237 kfree_sensitive(dev->blk_key); in crypto_deinit()
238 dev->blk_key = NULL; in crypto_deinit()