Re: what is needed to test the in-kernel crypto loop?

From: Valdis.Kletnieks@vt.edu
Date: Tue Jul 15 2003 - 13:29:39 EST


On Fri, 11 Jul 2003 15:46:55 +0200, Andries.Brouwer@cwi.nl said:

> Try util-linux 2.12, available in 60 hours.

(using this version from ftp.kernel.org/pub/linux/utils/util-linux:
-rw-r--r-- 1 korg korg 1285674 Jul 13 22:09 util-linux-2.12pre.tar.bz2

Umm.. OK... I'll bite. How do I get 2.12pre to actually use cryptoloop?

losetup -e aes /dev/loop yadd yadda says 'Unknown encryption type aes',
mostly because of this code in lomount.c:

struct crypt_type_struct {
        int id;
        char *name;
} crypt_type_tbl[] = {
        { LO_CRYPT_NONE, "no" },
        { LO_CRYPT_NONE, "none" },
        { LO_CRYPT_XOR, "xor" },
        { LO_CRYPT_DES, "DES" },
        { -1, NULL }
};
                
static int
crypt_type (const char *name) {
        int i;
        
        if (name) {
                for (i = 0; crypt_type_tbl[i].id != -1; i++)
                        if (!strcasecmp (name, crypt_type_tbl[i].name))
                                return crypt_type_tbl[i].id;
        }
        return -1;
}

none, xor, DES. Those are the choices - and yes, aes.o is built and in-kernel.



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



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:59 EST