mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add crypt_get_old_volume_key_size API.
It allows to get former (old) volume key size from LUKS2 device in reencryption state when there's at least one keyslot containing encrypted volume key.
This commit is contained in:
committed by
Milan Broz
parent
3dcb532bd3
commit
4e94c8d809
@@ -2034,6 +2034,19 @@ uint64_t crypt_get_iv_offset(struct crypt_device *cd);
|
||||
*/
|
||||
int crypt_get_volume_key_size(struct crypt_device *cd);
|
||||
|
||||
/**
|
||||
* Get size (in bytes) of old volume key for LUKS2 device in reencryption.
|
||||
*
|
||||
* @param cd crypt LUKS2 device handle
|
||||
*
|
||||
* @return old volume key size when device is in reencryption state
|
||||
*
|
||||
* @note For LUKS2, this function can be used only if there is at least
|
||||
* one keyslot assigned to old data segment. Also with reencryption
|
||||
* mode 'encrypt' there's no old volume key.
|
||||
*/
|
||||
int crypt_get_old_volume_key_size(struct crypt_device *cd);
|
||||
|
||||
/**
|
||||
* Get size (in bytes) of encryption sector for crypt device.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user