Re: loopback DES encryption not working (2.2pre4, util-linux-2.9f)

Murat Arslan (arslanm@gate.marketweb.net.tr)
Fri, 8 Jan 1999 14:49:10 +0200 (EET)


On Thu, 7 Jan 1999, Tobias Richter wrote:

> with linux 2.2.0pre4 and the losetup that comes with util-linux-2.9f
> I get:
>
> [root@cave /]# /sbin/losetup -e DES /dev/loop0 /file
> Password:
> Init (up to 16 hex digits):
> ioctl: LOOP_SET_STATUS: Invalid argument

Because DES encryption is not implemented, yet.

loop.c_128:
struct loop_func_table *xfer_funcs[MAX_LO_CRYPT] = {
&none_funcs,
&xor_funcs
};

loop.c_506:
type = info.lo_encrypt_type;
if (type >= MAX_LO_CRYPT || xfer_funcs[type] == NULL)
return -EINVAL;

Here, xfer_funcs[type] is NULL, so returned 'Invalid argument'.

Regards,
Murat Arslan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/