public inbox for cryptsetup@lists.linux.dev
 help / color / mirror / Atom feed
* Equivalent of --integrity-recalculate
@ 2025-05-10 15:51 Marc SCHAEFER
  2025-05-10 16:18 ` Milan Broz
  0 siblings, 1 reply; 4+ messages in thread
From: Marc SCHAEFER @ 2025-05-10 15:51 UTC (permalink / raw)
  To: cryptsetup

Hello,

If you create a cryptsetup/luks device with integrity with:

   cryptsetup luksFormat -q --type luks2 --integrity hmac-sha256 $dev

and then open it:

   cryptsetup open $dev backup-copy

you then get, according to lsblk, two additional devices:

   - backup-copy (the transparently decrypted/encrypting volume)

   - backup-copy_dif (the integrity device)

(which is similar, AFAIK, as when you use dm-integrity with LVM)

If you create an integrity device separately, you get a

   integritysetup --integrity-recalculate open $dev integrity

command which allows to recalculate the integrity blocks.

I don't think cryptsetup has this option (*); is there a way to
do it anyway?  Or maybe remove the backup-copy_dif and
re-add it?

Thank you for any pointer.

(*) it looks there is a feature request pending
       https://gitlab.com/cryptsetup/cryptsetup/-/issues/854

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-11 18:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-10 15:51 Equivalent of --integrity-recalculate Marc SCHAEFER
2025-05-10 16:18 ` Milan Broz
2025-05-11  8:25   ` Disabling integrity metadata verification (was: Equivalent of --integrity-recalculate) Marc SCHAEFER
2025-05-11 18:46     ` Disabling integrity metadata verification Milan Broz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox