]> Git Repo - qemu.git/commit
luks: extract qcrypto_block_calculate_payload_offset()
authorStefan Hajnoczi <[email protected]>
Fri, 21 Feb 2020 11:25:19 +0000 (11:25 +0000)
committerMax Reitz <[email protected]>
Wed, 11 Mar 2020 11:42:29 +0000 (12:42 +0100)
commit6d49d3a859b0f19226dbb0df5e7f50267b42f45c
tree2e11ce7bd094fc8e3cd71e6a672a162d37d1a088
parentba29883206d92a29ad5a466e679ccfc2ee6132ef
luks: extract qcrypto_block_calculate_payload_offset()

The qcow2 .bdrv_measure() code calculates the crypto payload offset.
This logic really belongs in crypto/block.c where it can be reused by
other image formats.

The "luks" block driver will need this same logic in order to implement
.bdrv_measure(), so extract the qcrypto_block_calculate_payload_offset()
function now.

Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Message-Id: <20200221112522.1497712[email protected]>
Signed-off-by: Max Reitz <[email protected]>
block/qcow2.c
crypto/block.c
include/crypto/block.h
This page took 0.028129 seconds and 4 git commands to generate.