LUKS2 reencryption
LUKS2 reencryption transforms an encrypted data area in place to change its volume key or encryption parameters.
Under cryptsetup v2.8.1's default mapping detection, an active mapping selects online operation; otherwise reencryption runs offline. A passphrase change alone does not replace the volume key. The --keep-key option explicitly preserves it during parameter changes. [1] [3] [2]
Abrupt interruption can require recovery during open or repair; continuing the remaining transformation uses reencrypt. Recovering the interrupted state is not completing the migration. [1]
The default checksum resilience mode records ciphertext-sector checksums for the working region and requires atomic device-sector writes. Journal mode saves that region in the binary area; none supplies no crash protection. These are migration-recovery mechanisms, not persistent payload authentication or an independent backup. [2]
The format's reencrypt keyslot reserves recovery information, not a decryption key. Its area is temporary and is wiped on completion; it is distinct from a credential-bearing luks2 keyslot. [5]
Relations
- related
- LUKS, LUKS keyslot, LUKS header backup, Key rotation, dm-crypt, Authenticated encryption, Backup
Limitations
- In-place encryption and decryption transitions can expose plaintext; reliable backups remain necessary. [1]
Citations
- cryptsetup v2.8.1: reencrypt, LUKS2 operation and recovery
- cryptsetup v2.8.1: keep-key, resilience and resume-only options
- cryptsetup v2.8.1 FAQ: passphrase and volume-key distinction, sections 1.2 and 6.15
- Milan Broz: LUKS2 On-Disk Format Specification 1.1.4, sections 3.2.2 and 4.9