diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-05-10 15:40:55 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2022-10-27 12:55:27 +0100 |
commit | 98c72dfb714385b03da03abb45f931a14af6138e (patch) | |
tree | 36e60cbc95022ab8d9ea301c61f7de75bf5a47a8 /crypto/block-luks-priv.h | |
parent | 36445acebdd100237551b47b4fd77f0c5403a10f (diff) |
crypto: split off helpers for converting LUKS header endianess
The unit test suite is shortly going to want to convert header
endianness separately from the main I/O functions.
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'crypto/block-luks-priv.h')
-rw-r--r-- | crypto/block-luks-priv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/block-luks-priv.h b/crypto/block-luks-priv.h index 1516571dcb..90a20d432b 100644 --- a/crypto/block-luks-priv.h +++ b/crypto/block-luks-priv.h @@ -135,3 +135,9 @@ struct QCryptoBlockLUKSHeader { /* key slots */ QCryptoBlockLUKSKeySlot key_slots[QCRYPTO_BLOCK_LUKS_NUM_KEY_SLOTS]; }; + + +void +qcrypto_block_luks_to_disk_endian(QCryptoBlockLUKSHeader *hdr); +void +qcrypto_block_luks_from_disk_endian(QCryptoBlockLUKSHeader *hdr); |