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