Re: [PATCH 1/2] tcrypt.c: Support for more test vectors

2007-11-27 Thread Tan Swee Heng
New year resolution: I've got to remember to attach my patches. :-) On Nov 28, 2007 7:19 AM, Tan Swee Heng <[EMAIL PROTECTED]> wrote: > Currently the number of entries in a cipher test vector template is > limited by TVMEMSIZE/sizeof(struct cipher_testvec). This patch > circumvents the problem by

[PATCH 1/2] tcrypt.c: Support for more test vectors

2007-11-27 Thread Tan Swee Heng
Currently the number of entries in a cipher test vector template is limited by TVMEMSIZE/sizeof(struct cipher_testvec). This patch circumvents the problem by pointing cipher_tv to each entry in the template, rather than the template itself. Signed-off-by: Tan Swee Heng <[EMAIL PROTECTED]> - To uns

Re: Possible bug in CTR (and Salsa20) for large test vectors

2007-11-27 Thread Tan Swee Heng
Hi Herbert, On Nov 26, 2007 9:21 PM, Herbert Xu <[EMAIL PROTECTED]> wrote: > Here is my attempt at fixing it and optimising it a bit more. > The idea is that we should only process partial blocks when > we're at the end. Otherwise we should do whole blocks. Great patch! I like it more than mine a

[PATCH] [crypto] geode: do not copy the IV too often

2007-11-27 Thread Sebastian Siewior
There is no reason to keep the IV in the private structre. Instead keep just a pointer to make the patch smaller :) This also remove a few memcpy()s Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]> --- drivers/crypto/geode-aes.c |6 ++ drivers/crypto/geode-aes.h |2 +- 2 files cha

[PATCH] [crypto] remove similar aes glue code

2007-11-27 Thread Sebastian Siewior
32 bit and 64 bit glue code is using (now) the same piece code. This patch unifies them. Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]> --- arch/x86/crypto/Makefile |4 +- arch/x86/crypto/aes_32.c | 58 -- arch/x86/crypto/{ae

Re: [PATCH] [RESEND] crypto test: use print_hex_dump from kernel.h instead

2007-11-27 Thread Andrew Morton
On Tue, 27 Nov 2007 13:03:29 +0800 "rae l" <[EMAIL PROTECTED]> wrote: > -static void hexdump(unsigned char *buf, unsigned int len) > +static inline void hexdump(unsigned char *buf, unsigned int len) > { > - while (len--) > - printk("%02x", *buf++); > - > - printk("\n"); > +