mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +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
@@ -411,6 +411,7 @@ const char *LUKS2_get_integrity(struct luks2_hdr *hdr, int segment);
|
||||
int LUKS2_get_integrity_key_size(struct luks2_hdr *hdr, int segment);
|
||||
int LUKS2_keyslot_params_default(struct crypt_device *cd, struct luks2_hdr *hdr,
|
||||
struct luks2_keyslot_params *params);
|
||||
int LUKS2_get_old_volume_key_size(struct luks2_hdr *hdr);
|
||||
int LUKS2_get_volume_key_size(struct luks2_hdr *hdr, int segment);
|
||||
int LUKS2_get_keyslot_stored_key_size(struct luks2_hdr *hdr, int keyslot);
|
||||
const char *LUKS2_get_keyslot_cipher(struct luks2_hdr *hdr, int keyslot, size_t *key_size);
|
||||
|
||||
Reference in New Issue
Block a user