Closed GoogleCodeExporter closed 9 years ago
Well, if it is reproducible, it should be fixed. I will try to check it.
But using ECB mode is very insecure (and it was never default)... I wonder what
was the reason to use it.
Original comment by gmazyl...@gmail.com
on 21 Dec 2014 at 3:53
My first bet on why it was used would be disk throughput.
I just tried it with the same result.
With cryptsetup 1.6.6:
cryptsetup luksFormat /dev/sdab -c aes-ecb-plain
and
cryptsetup luksFormat /dev/sdab -c aes-ecb-benbi
fails with "Command failed with code 5: Input/output error"
When I downgrade to 1.6.4 both fly.
Original comment by randomic...@gmail.com
on 22 Dec 2014 at 12:36
Attachments:
To note: When I reproduced it post above, it was with a grsec kernel - which
sometimes can give funny results. But not in this case. The same error sticks
with Linux 3.17.6-1-ARCH i686.
Original comment by randomic...@gmail.com
on 22 Dec 2014 at 5:02
I think the problem here is that ECB mode should not have IV defined.
So correct specification is "-c aes-ecb" (and this should work).
Unfortunately, dmcrypt accepts ecb with _any_ IV spec (even nonsensical) so
cryptsetup should at least support what was previously possible in LUKS
header...
Original comment by gmazyl...@gmail.com
on 15 Jan 2015 at 11:50
I hope it is fixed by this commit
https://code.google.com/p/cryptsetup/source/detail?r=979aec773e5903c20225f700f22
c6fae85ed7bf8#
Please let me know, if there is still any problem, thanks.
Original comment by gmazyl...@gmail.com
on 15 Jan 2015 at 12:29
Just to confirm: all works now, thanks!
- After formatting with 1.6.4 and "-c aes-ecb-benbi" & "-c aes-ecb-plain"
(which show in luksDump rather than "ecb" only), both open again with the git
version.
- Formatting with git-version a "-c aes-ecb-benbi" gets stripped to "ecb" in
the header.
- Formatting with "-c aes-ecb" is/was functional in 1.6.6 here as well, yes.
Original comment by randomic...@gmail.com
on 28 Jan 2015 at 11:20
Original issue reported on code.google.com by
randomic...@gmail.com
on 21 Dec 2014 at 12:37