linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* util-linux and data encryption
@ 2005-10-03 16:04 Paulo da Silva
  2005-10-03 22:07 ` Adrian Bunk
  2005-10-04  5:13 ` Jari Ruusu
  0 siblings, 2 replies; 4+ messages in thread
From: Paulo da Silva @ 2005-10-03 16:04 UTC (permalink / raw)
  To: linux-kernel

If this is not the right place to post about
util-linux, please tell me where to post.
I'm posting here because util-linux is at kernel.org.
_____________________________
I had a loop filesystem encrypted with twofish
algorithm.

Today, trying to mount the file, 'mount' claimed
I needed to enter a password of 20 chars or more!
Since I used less chars to encrypt, I was not able
to recover the information!!!
I tried CFLAGS="-DLOOP_PASSWORD_MIN_LENGTH=8"
without any success. This causes 'mount' to accept
the password, but, somehow, the decryption failled
because the fs type remained unrecognized!

BTW, I am using gentoo and I also tried USE=old-crypt.
No way!

I needed to install the version 2.12i to recover
my information.

Is this related with util-linux or has something
to do with gentoo patches or something?

This should not happen! Changing things like this
must keep some kind of compatibility with old ones.

How do I encrypt important data for the future?

Thank you for any comments.


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

* Re: util-linux and data encryption
  2005-10-03 16:04 util-linux and data encryption Paulo da Silva
@ 2005-10-03 22:07 ` Adrian Bunk
  2005-10-04  0:14   ` Paulo da Silva
  2005-10-04  5:13 ` Jari Ruusu
  1 sibling, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2005-10-03 22:07 UTC (permalink / raw)
  To: Paulo da Silva; +Cc: linux-kernel

On Mon, Oct 03, 2005 at 05:04:14PM +0100, Paulo da Silva wrote:

> If this is not the right place to post about
> util-linux, please tell me where to post.
> I'm posting here because util-linux is at kernel.org.
>...

If you have problems with some software shipped with a distribution the
best choice is usually the support / bug tracking system of your
distribution.

In your case, the problem seems to be already reported as Gentoo
bug #107680 [1].

> BTW, I am using gentoo and I also tried USE=old-crypt.
> No way!
> 
> I needed to install the version 2.12i to recover
> my information.
> 
> Is this related with util-linux or has something
> to do with gentoo patches or something?
>...

You are using features not present in the upstream util-linux but added 
by patches Gentoo applies.

> Thank you for any comments.

cu
Adrian

[1] http://bugs.gentoo.org/107680

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: util-linux and data encryption
  2005-10-03 22:07 ` Adrian Bunk
@ 2005-10-04  0:14   ` Paulo da Silva
  0 siblings, 0 replies; 4+ messages in thread
From: Paulo da Silva @ 2005-10-04  0:14 UTC (permalink / raw)
  To: linux-kernel

Adrian Bunk wrote:

>On Mon, Oct 03, 2005 at 05:04:14PM +0100, Paulo da Silva wrote:
>
>  
>
>>If this is not the right place to post about
>>util-linux, please tell me where to post.
>>I'm posting here because util-linux is at kernel.org.
>>...
>>    
>>
>
>If you have problems with some software shipped with a distribution the
>best choice is usually the support / bug tracking system of your
>distribution.
>
>In your case, the problem seems to be already reported as Gentoo
>bug #107680 [1].
>
>  
>
>>BTW, I am using gentoo and I also tried USE=old-crypt.
>>No way!
>>
>>I needed to install the version 2.12i to recover
>>my information.
>>
>>Is this related with util-linux or has something
>>to do with gentoo patches or something?
>>...
>>    
>>
>
>You are using features not present in the upstream util-linux but added 
>by patches Gentoo applies.
>
>  
>
*I am very sorry*.
At first I did not think this could be a problem of gentoo.
It just came up to my mind when I was writing this post.
That's why I added the lines refering 'gentoo'!
I should have looked at gentoo first ...
I'll be more carefull next time, if there is a next time :-(

Thank you anyway for your answer.

Paulo


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

* Re: util-linux and data encryption
  2005-10-03 16:04 util-linux and data encryption Paulo da Silva
  2005-10-03 22:07 ` Adrian Bunk
@ 2005-10-04  5:13 ` Jari Ruusu
  1 sibling, 0 replies; 4+ messages in thread
From: Jari Ruusu @ 2005-10-04  5:13 UTC (permalink / raw)
  To: Paulo da Silva; +Cc: linux-kernel

Paulo da Silva wrote:
> I had a loop filesystem encrypted with twofish
> algorithm.
> 
> Today, trying to mount the file, 'mount' claimed
> I needed to enter a password of 20 chars or more!
> Since I used less chars to encrypt, I was not able
> to recover the information!!!
> I tried CFLAGS="-DLOOP_PASSWORD_MIN_LENGTH=8"
> without any success. This causes 'mount' to accept
> the password, but, somehow, the decryption failled
> because the fs type remained unrecognized!
> 
> BTW, I am using gentoo and I also tried USE=old-crypt.
> No way!
> 
> I needed to install the version 2.12i to recover
> my information.
> 
> Is this related with util-linux or has something
> to do with gentoo patches or something?

Seems like gentoo has merged loop-AES' util-linux patch which has always
used better defaults.

Mainline util-linux compatible mount options for /etc/fstab

    encryption=twofish256,phash=unhashed2

Mainline util-linux compatible losetup command options

    losetup -e twofish256 -H unhashed2 ......

kerneli.org compatible mount options for /etc/fstab

    encryption=twofish256,phash=rmd160

kerneli.org compatible losetup command options

    losetup -e twofish256 -H rmd160 ......

mount and losetup programs don't enforce 20 character minimum passphrase
length when using 'rmd160' or 'unhashed2' hash functions.

Both mainline util-linux and kerneli.org compatible setups are broken
securitywise. If there still are file systems using such broken setups, now
is good time to re-encrypt them using stronger crypto.

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

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

end of thread, other threads:[~2005-10-04  5:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-03 16:04 util-linux and data encryption Paulo da Silva
2005-10-03 22:07 ` Adrian Bunk
2005-10-04  0:14   ` Paulo da Silva
2005-10-04  5:13 ` Jari Ruusu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).