Cryptsetup development
 help / color / mirror / Atom feed
* reencrypt: how to specify old and new key-files?
@ 2022-11-08 22:52 Philippe Cerfon
  2022-11-10  9:24 ` Ondrej Kozina
  0 siblings, 1 reply; 6+ messages in thread
From: Philippe Cerfon @ 2022-11-08 22:52 UTC (permalink / raw)
  To: cryptsetup

Hey.

Sorry for having to ask again.

When I'm reencrypting a device in order to change the volume key and
also the keyslot (say from PBKDF2 to Argon2) wouldn't there need to be
some way to specify two different --key-file?

One for the old keyslot with the old VK, and one for the new keyslot
to be generated?

Especially if with --key-slot <old slot ID>, the old slot is
overwritten and all others removed, as explained by the manpage:
> For reencryption mode it selects specific keyslot (and passphrase)
> that can be used to unlock new volume key. If used all other keyslots
> get removed after reencryption operation is finished.

But it seems there is only the --key-file option, for which it's even
unclear to me, whether it's for the old or new keyslot/VK?


Thanks,
Philippe

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

end of thread, other threads:[~2022-11-11 18:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-08 22:52 reencrypt: how to specify old and new key-files? Philippe Cerfon
2022-11-10  9:24 ` Ondrej Kozina
2022-11-10 14:52   ` Philippe Cerfon
2022-11-11 10:39     ` Ondrej Kozina
2022-11-11 13:22       ` Philippe Cerfon
2022-11-11 18:11       ` Philippe Cerfon

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