Re: crypto algoritms failing?

From: James Morris
Date: Thu Jan 27 2005 - 20:46:30 EST


On Fri, 28 Jan 2005, Jasper Spaans wrote:

> On Thu, Jan 27, 2005 at 07:38:43PM -0500, James Morris wrote:
> > > Is this supposed to happen?
> >
> > No. What is your kernel version?
>
> Current bitkeeper + latest swsusp2 patches and hostap driver, however, those
> two don't come near touching the crypto stuff[1] so they're not really on my
> suspect shortlist, but I'll see if I can find time to build a vanilla one
> tomorrow (that is, without swsusp/hostap).. right now, it's time to sleep in
> my local timezone..

Looks like a cleanup broke the test vectors:
http://linux.bkbits.net:8080/linux-2.5/gnupatch@41ad5cd9EXGuUhmmotTFBIZdIkTm0A

Patch below, please apply.

Signed-off-by: James Morris <jmorris@xxxxxxxxxx>


---

diff -purN -X dontdiff linux-2.6.11-rc1-mm1.o/crypto/tcrypt.h linux-2.6.11-rc1-mm1.w/crypto/tcrypt.h
--- linux-2.6.11-rc1-mm1.o/crypto/tcrypt.h 2005-01-19 09:30:32.000000000 -0500
+++ linux-2.6.11-rc1-mm1.w/crypto/tcrypt.h 2005-01-27 20:28:23.312918312 -0500
@@ -1986,7 +1986,7 @@ static struct cipher_testvec arc4_dec_tv
#define TEA_ENC_TEST_VECTORS 4
#define TEA_DEC_TEST_VECTORS 4

-static struct cipher_testvec xtea_enc_tv_template[] =
+static struct cipher_testvec tea_enc_tv_template[] =
{
{
.key = { [0 ... 15] = 0x00 },
@@ -2080,7 +2080,7 @@ static struct cipher_testvec tea_dec_tv_
#define XTEA_ENC_TEST_VECTORS 4
#define XTEA_DEC_TEST_VECTORS 4

-static struct cipher_testvec tea_enc_tv_template[] =
+static struct cipher_testvec xtea_enc_tv_template[] =
{
{
.key = { [0 ... 15] = 0x00 },




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