Re: [CRYPTO] Testing Module Cleanup.
From: Erlend Aasland
Date: Sun Oct 05 2003 - 19:42:31 EST
Hi Kartikey,
You might want to clean up tcrypt.h a bit with the attached patch. It
removes more than 700 lines of code :-)
(I have not had a chance to test it yet, I've just checked that it
compiles. Will test it tomorrow.)
Regards
Erlend Aasland
On 10/05/03 23:58, kartikey bhatt wrote:
> done it.
> sending it as an attachment.
>
> -Kartikey Mahendra Bhatt
>
> >From: James Morris <jmorris@xxxxxxxxxx>
> >To: kartikey bhatt <kartik_me@xxxxxxxxxxx>
> >CC: linux-kernel@xxxxxxxxxxxxxxx
> >Subject: Re: [CRYPTO] Testing Module Cleanup.
> >Date: Thu, 2 Oct 2003 10:35:09 -0400 (EDT)
> >
> >On Thu, 2 Oct 2003, kartikey bhatt wrote:
> >
> >> sending it as an attachment
> >>
> >
> >I'm seeing a failure with the 5th DES ECB test vector:
> >
> > testing des ECB encryption
> > [...]
> > test 5 (64 bit key):
> > 5630092f0161d576
> > fail
> >
> >Could you also retain the weak key test for DES? Just add another field
> >to the test vector struct to indicate that CRYPTO_TFM_REQ_WEAK_KEY needs
> >to be set prior to setkey(), then clear it after the test. (Once you do
> >this the above test vector should fail anyway, which is probably why it
> >is buggy -- it's never been run).
> >
> >Also, a minor nit: please be careful about this kind of thing:
> >
> >- * Copyright (c) 2002 Jean-Francois Dive <jef@xxxxxxxxxxx>$
> >+ * Copyright (c) 2002 Jean-Francois Dive <jef@xxxxxxxxxxx> ^I$
> >
> >
> >Otherwise, it looks good.
> >
> >Thanks,
> >
> >
> >- James
> >--
> >James Morris
> ><jmorris@xxxxxxxxxx>
> >
> >
> >-
> >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/
>
> _________________________________________________________________
> Access Hotmail from your mobile now.
> http://server1.msn.co.in/sp03/mobilesms/ Click here.
BZh91AY&SYop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