qemu/include/crypto
Stefan Hajnoczi 6d49d3a859 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 <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200221112522.1497712-2-stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2020-03-11 12:42:29 +01:00
..
aes.h
afsplit.h Don't talk about the LGPL if the file is licensed under the GPL 2019-01-30 10:51:20 +01:00
block.h luks: extract qcrypto_block_calculate_payload_offset() 2020-03-11 12:42:29 +01:00
cipher.h crypto: define cleanup functions for use with g_autoptr 2019-08-22 10:47:12 +01:00
desrfb.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
hash.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
hmac.h crypto: define cleanup functions for use with g_autoptr 2019-08-22 10:47:12 +01:00
init.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
ivgen.h crypto: define cleanup functions for use with g_autoptr 2019-08-22 10:47:12 +01:00
pbkdf.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
random.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
secret.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
tlscreds.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
tlscredsanon.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
tlscredspsk.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
tlscredsx509.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00
tlssession.h crypto: Fix typo in QCryptoTLSSession's <example> comment 2019-12-18 08:36:15 +01:00
xts.h crypto: Fix LGPL information in the file headers 2019-07-19 14:21:25 +01:00