build problems
Alexej Davidov <[email protected]> (by way of Alexej Davidov <[email protected]>) Fri, 16 Apr 2004 20:40:06 +0200
| Newsgroups | gmane.comp.encryption.cipe |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've just checked out todays CIPE from CVS and there seem to be some
problems:
1) Makefile.CVS: it says "autoconf -l conf" ('l' as in list). This should be
"autoconf -I conf" ('I' as in India), i presume?
2) configure.in: The trick with setting the BUILD variable does not work for
my autoconf (version 2.57). That means, config.h is created in / and has to
be copied manually to the appropriate directory.
3) lebf.c: It seems that the the cryptoapi interface has changed. So
cryptoapi.h doesn't match with <linux/crypto.h> (I use kernel 2.6.5). I've
attached a little patch for lebf.c, making it work with the kernel. NB: the
patch doesn't fix cryptoapi.h, so it just works, if the kernel's cryptoapi is
used.
Kind regards
Alexej
cipe-linux.diff
(text/x-diff, 566 B)
--- cipe-linux/cipe/lebf.c 2004-03-06 23:16:41.000000000 +0100
+++ cipe-linux-fixed/cipe/lebf.c 2004-04-16 20:04:47.000000000 +0200
@@ -46,14 +46,14 @@
.cra_blocksize = 8,
.cra_ctxsize = sizeof(Blowfish_Key),
.cra_name = "cipe-le-blowfish-internal",
- .cra_cipher = {
- .cia_ivsize = 8,
+ .cra_u = { .cipher = {
.cia_setkey = lebf_cra_setkey,
.cia_encrypt = lebf_encrypt,
.cia_decrypt = lebf_decrypt,
- },
+ }}
};
static struct cipher_tfm LEBF_CIPHER = {
+ .cit_ivsize = 8,
.cit_setkey = lebf_cit_setkey,
};