mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 19:30:04 +01:00
We cannot trust possibly broken keyslots metadata here through LUKS_keyslots_offset(). Expect first keyslot is aligned, if not, then manual repair is neccessary. (This situation happen if partition table signarture overwrites slot 4 area). Also, if keyslot order is different, current repair code does not work properly (this can happen only with downconverting LUKS2 device).