[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with DES



Pierre PEIFFER wrote:

> Hello everybody and happy new year !
>
>     I have problem with DES, I use kernel patch 2.2.17.10 with kernel
> 2.2.13 and I have the following problem:
>     losetup return "ioctl: LOOP_SET_STATUS: Invalid argument".
>
>     Since rijndael encryption works very well and since a message "Use
> of DES is deprecated", I was worrying if DES is still well supported and
> maintained ?
>
>     If yes (as I supposed), let me give you more info. I have everything
> about loopback file and cryptography set as kernel modules(des,
> loop_gen, cryptoapi, and loop). And when running losetup, all this
> modules are well inserted, then I supposed my /etc/conf.module is right.
>
>     I just have a look in /var/log/message and I have an error
> "modprobe: Can't locate module loop-xfer-2", but I supposed this is not
> a real error and has something to do with the cipher number of DES,
> right ? (And then in /var/log/messages, I have a message such as
> "Registered des (2)...")
>
>     Then I have a look in the kernel code in order to trace the problem.
> And I first see than in loop.c, in function loop_set_status, it is
> "loop_init_xfer" which return -EINVAL
>
>     In this function, we go in function in loop_gen_init2 (from
> loop_gen.c) which call "des_set_key" which return -1. And this is the
> problem, but I can't say why it returns -1.

I have more info, it returns -1 because of a "bad parity in key". What does
it mean ? Is there a constraint on the key or the "init" value given to
losetup ? Hummm, I'm a little bit lost, I don't understand...

>
>
>     Has someone any idea ? Because I am a little bit "wedged", since I
> haven't more idea...
>
>     Many thank's  to everybody who can help me and to all other for
> having read my mail !
>
>     Pierre
>
> Linux-crypto:  cryptography in and on the Linux system
> Archive:       http://mail.nl.linux.org/linux-crypto/


Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/