Lines Matching defs:blk_key
317 * @blk_key: Pointer to the blk_crypto_key to initialize.
326 * zeroizing both blk_key and raw_key when done with them.
328 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key,
335 memset(blk_key, 0, sizeof(*blk_key));
350 blk_key->crypto_cfg.crypto_mode = crypto_mode;
351 blk_key->crypto_cfg.dun_bytes = dun_bytes;
352 blk_key->crypto_cfg.data_unit_size = data_unit_size;
353 blk_key->data_unit_size_bits = ilog2(data_unit_size);
354 blk_key->size = mode->keysize;
355 memcpy(blk_key->raw, raw_key, mode->keysize);