luks2-reencryption · shipping · also LUKS2 re-encryption

LUKS2 reencryption

LUKS2 reencryption transforms an encrypted data area in place to change its volume key or encryption parameters.

Related Observatory article: Read on hesela.com

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

  1. cryptsetup v2.8.1: reencrypt, LUKS2 operation and recovery (accessed 2026-12-05)
  2. cryptsetup v2.8.1: keep-key, resilience and resume-only options (accessed 2026-12-05)
  3. cryptsetup v2.8.1 FAQ: passphrase and volume-key distinction, sections 1.2 and 6.15 (accessed 2026-12-05)
  4. Milan Broz: LUKS2 On-Disk Format Specification 1.1.4, sections 3.2.2 and 4.9 (accessed 2026-12-05)

Further reading

  1. Hesela: What LUKS2 reencryption recovery establishes (accessed 2026-12-05)
Sources & caveats
  • Version-pinned documentation synthesis, not a reencryption or power-loss experiment. No device, key or ciphertext was modified.
  • The three named resilience modes describe the ordinary case; implicit datashift has additional constraints. [1] [2]

JSON: /data/terms/luks2-reencryption.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. LUKS2 reencryption. Hesela. 2026-12-05. https://hesela.dev/terms/luks2-reencryption/