lkml.org 
[lkml]   [1999]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: loopback DES encryption not working (2.2pre4, util-linux-2.9f)
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.064 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site