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

Re: Patch for losetup




On Sun, 31 Dec 2000, Jan-Benedict Glaw wrote:

> > +       { LO_CRYPT_RIJNDAEL, "rijndael", 16},
> > +       { LO_CRYPT_AES, "aes", 16},

<snip>

> > +#define LO_CRYPT_AES      18
>                              ^^--- You better define this to 16, right?


You confuse the keylength with the cipher identifer. The two first
definitions define the keylength used by the loopback device, which is 16
bytes or 128 bits. The second is the identifer for AES, which is 18 in the
current version of kerneli. The identifer for rijndael is (by coincident)
16, and that mey be confusing.

Also, rijndael and AES has different identifers, but is in fact the
same thing, and use the same code for encipherment, so inserting 16
would work if you selected "AES available under the rijndael name"
when configuring the kernel, and not otherwise.

--
Gisle Sælensminde ( gisle@ii.uib.no )

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead. (from RFC 1925)


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