[dm-crypt] cryptsetup 1.2 to 1.6 upgrade

Jose Thomas jostho at gmail.com
Thu Nov 19 16:32:49 CET 2015


Milan,

I had seen this - https://gitlab.com/cryptsetup/cryptsetup/issues/112. But
it did not click to me - since the key reported as 256 bits in "status"
output.

Thanks for the pointer. I will try out your solution.

Thanks & regards,
Jose

On Thu, Nov 19, 2015 at 8:00 PM, Milan Broz <gmazyland at gmail.com> wrote:

>
> On 11/19/2015 02:07 PM, Jose Thomas wrote:
> >
> > $ ls -l /dev/shm/key.dat
> > -rw-------. 1 root root 16 Nov 19 05:03 /dev/shm/key.dat
>
> Your keyfile is only 16 bytes long, you need 32 bytes for 256bit key.
>
> (There was an bug in cryptsetup 1.2.0 where this was not reported and rest
> of key was zeroed.)
>
> Try to add these zeroes to your keyfile and repeat.
> (Like dd if=/dev/zero of=<keyfile> seek=16 bs=1 count=16 conv=notrunc )
>
> But note your key is half-zeroed (since the beginning!).
>
> Milan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20151119/cf230ad7/attachment.html>


More information about the dm-crypt mailing list