Lines Matching defs:blk_key
161 void inline_crypt_bio(struct blk_crypto_key *blk_key, struct bio *bio)
168 bio_crypt_set_ctx(bio, blk_key, iv.dun, GFP_NOIO);
173 struct blk_crypto_key *blk_key = NULL;
177 blk_key = kzalloc(sizeof(struct blk_crypto_key), GFP_KERNEL);
178 if (!blk_key) {
182 ret = blk_crypto_init_key(blk_key, key, HP_CIPHER_MODE, dun_bytes, PAGE_SIZE);
188 return blk_key;
190 if (blk_key)
191 kfree_sensitive(blk_key);
196 void inline_crypt_bio(struct blk_crypto_key *blk_key, struct bio *bio) {}
214 dev->blk_key = inline_crypto_init(key);
215 ret = dev->blk_key;
230 if (dev->blk_key) {
231 kfree_sensitive(dev->blk_key);
232 dev->blk_key = NULL;