Lines Matching defs:blk_key
309 * @blk_key: Pointer to the blk_crypto_key to initialize.
318 * zeroizing both blk_key and raw_key when done with them.
320 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key,
327 memset(blk_key, 0, sizeof(*blk_key));
342 blk_key->crypto_cfg.crypto_mode = crypto_mode;
343 blk_key->crypto_cfg.dun_bytes = dun_bytes;
344 blk_key->crypto_cfg.data_unit_size = data_unit_size;
345 blk_key->data_unit_size_bits = ilog2(data_unit_size);
346 blk_key->size = mode->keysize;
347 memcpy(blk_key->raw, raw_key, mode->keysize);