* [dm-crypt] cryptsetup from aes-cbc to aes-xts
@ 2015-10-29 22:28 xxiao8
2015-10-29 23:32 ` Arno Wagner
2015-10-30 21:31 ` Michael Kjörling
0 siblings, 2 replies; 3+ messages in thread
From: xxiao8 @ 2015-10-29 22:28 UTC (permalink / raw)
To: dm-crypt
I had a one liner change in my cryptsetup script (see below), as long as
the key-file is the same, I can keep using the content on the
hard-drive, which is a surprise to me. Doesn't switch-to-aes-xts-plain64
mandate a reformat of the hard drive? am I missing something?
Changing from
cryptsetup -v -c "aes-cbc-essiv:sha256" --key-size 256 --key-file
/etc/keys/sda1.key luksFormat --use-random /dev/sda1
to
cryptsetup -v -c "aes-xts-plain64" --hash sha256 --key-size 512
--key-file /etc/keys/sda1.key luksFormat --use-random /dev/sda1
Thanks for your help,
xxiao
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dm-crypt] cryptsetup from aes-cbc to aes-xts
2015-10-29 22:28 [dm-crypt] cryptsetup from aes-cbc to aes-xts xxiao8
@ 2015-10-29 23:32 ` Arno Wagner
2015-10-30 21:31 ` Michael Kjörling
1 sibling, 0 replies; 3+ messages in thread
From: Arno Wagner @ 2015-10-29 23:32 UTC (permalink / raw)
To: dm-crypt
You do not need to format the disk, you just need to luksFormat
the LUKS container (i.e. full disk, partition or loop-file).
Your LUKS container here is /dev/sda1 and you are
luks(re)Formatting it with the lines you give.
Regards,
Arno
On Thu, Oct 29, 2015 at 23:28:58 CET, xxiao8 wrote:
> I had a one liner change in my cryptsetup script (see below), as
> long as the key-file is the same, I can keep using the content on
> the hard-drive, which is a surprise to me. Doesn't
> switch-to-aes-xts-plain64 mandate a reformat of the hard drive? am I
> missing something?
>
>
> Changing from
> cryptsetup -v -c "aes-cbc-essiv:sha256" --key-size 256 --key-file
> /etc/keys/sda1.key luksFormat --use-random /dev/sda1
>
> to
> cryptsetup -v -c "aes-xts-plain64" --hash sha256 --key-size 512
> --key-file /etc/keys/sda1.key luksFormat --use-random /dev/sda1
>
> Thanks for your help,
>
> xxiao
>
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dm-crypt] cryptsetup from aes-cbc to aes-xts
2015-10-29 22:28 [dm-crypt] cryptsetup from aes-cbc to aes-xts xxiao8
2015-10-29 23:32 ` Arno Wagner
@ 2015-10-30 21:31 ` Michael Kjörling
1 sibling, 0 replies; 3+ messages in thread
From: Michael Kjörling @ 2015-10-30 21:31 UTC (permalink / raw)
To: dm-crypt
On 29 Oct 2015 17:28 -0500, from xxiao8@fosiao.com (xxiao8):
> I had a one liner change in my cryptsetup script (see below), as
> long as the key-file is the same, I can keep using the content on
> the hard-drive, which is a surprise to me. Doesn't
> switch-to-aes-xts-plain64 mandate a reformat of the hard drive? am I
> missing something?
What do you mean by "keep using the content"?
If the luksFormat is run while the container is unmounted, I don't see
how you could retain access to the encrypted content in any meaningful
way, even if you were to use the same algorithm, unless you are using
an external LUKS header; even if you use the same key file and/or
passphrase, the luksFormat causes the header to be rewritten with a
different encryption key, which will all but ensure that the data will
no longer make any sense whatsoever.
> Changing from
> cryptsetup -v -c "aes-cbc-essiv:sha256" --key-size 256 --key-file
> /etc/keys/sda1.key luksFormat --use-random /dev/sda1
>
> to
> cryptsetup -v -c "aes-xts-plain64" --hash sha256 --key-size 512
> --key-file /etc/keys/sda1.key luksFormat --use-random /dev/sda1
--
Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se
“People who think they know everything really annoy
those of us who know we don’t.” (Bjarne Stroustrup)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-30 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29 22:28 [dm-crypt] cryptsetup from aes-cbc to aes-xts xxiao8
2015-10-29 23:32 ` Arno Wagner
2015-10-30 21:31 ` Michael Kjörling
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.