Re: LZF Cryptoapi support.

2005-07-30 Thread Herbert Xu
On Thu, Jul 21, 2005 at 02:56:07PM +1000, Nigel Cunningham wrote: > > +static int lzf_compress_init(void *context) > +{ > + struct lzf_ctx *ctx = (struct lzf_ctx *)context; > + > + /* Get LZF ready to go */ > + ctx->hbuf = vmalloc_32((1 << hlog) * sizeof(char *)); Any reason why

Re: LZF Cryptoapi support.

2005-07-30 Thread Herbert Xu
On Thu, Jul 21, 2005 at 02:56:07PM +1000, Nigel Cunningham wrote: +static int lzf_compress_init(void *context) +{ + struct lzf_ctx *ctx = (struct lzf_ctx *)context; + + /* Get LZF ready to go */ + ctx-hbuf = vmalloc_32((1 hlog) * sizeof(char *)); Any reason why vmalloc can't

Re: LZF Cryptoapi support.

2005-07-20 Thread Pavel Machek
Hi! > New revision. Anything left to fix up? It certainly looks better now. > +static int lzf_compress_init(void *context) > +{ > + struct lzf_ctx *ctx = (struct lzf_ctx *)context; > + > + /* Get LZF ready to go */ > + ctx->hbuf = vmalloc_32((1 << hlog) * sizeof(char *)); > + if

Re: LZF Cryptoapi support.

2005-07-20 Thread Nigel Cunningham
Howdy. New revision. Anything left to fix up? Regards, Nigel Kconfig |7 + Makefile |1 lzf.c| 377 +++ 3 files changed, 385 insertions(+) diff -ruNp 260-crypto-api-lzf-support.patch-old/crypto/Kconfig

Re: LZF Cryptoapi support.

2005-07-20 Thread Nigel Cunningham
Howdy. New revision. Anything left to fix up? Regards, Nigel Kconfig |7 + Makefile |1 lzf.c| 377 +++ 3 files changed, 385 insertions(+) diff -ruNp 260-crypto-api-lzf-support.patch-old/crypto/Kconfig

Re: LZF Cryptoapi support.

2005-07-20 Thread Pavel Machek
Hi! New revision. Anything left to fix up? It certainly looks better now. +static int lzf_compress_init(void *context) +{ + struct lzf_ctx *ctx = (struct lzf_ctx *)context; + + /* Get LZF ready to go */ + ctx-hbuf = vmalloc_32((1 hlog) * sizeof(char *)); + if

Re: LZF Cryptoapi support.

2005-07-19 Thread Pavel Machek
Hi! > Here's another resend, this time adding an lzf cryptoapi module. > > LZF is a very fast compressor which typically achieves approximately 50% > compression on a suspend image. The original author (Marc Alexander > Lehmann) donated it to Suspend2. I have converted it to cryptoapi with a >

Re: LZF Cryptoapi support.

2005-07-19 Thread Pavel Machek
Hi! Here's another resend, this time adding an lzf cryptoapi module. LZF is a very fast compressor which typically achieves approximately 50% compression on a suspend image. The original author (Marc Alexander Lehmann) donated it to Suspend2. I have converted it to cryptoapi with a recent

LZF Cryptoapi support.

2005-07-18 Thread Nigel Cunningham
Hi again. Here's another resend, this time adding an lzf cryptoapi module. LZF is a very fast compressor which typically achieves approximately 50% compression on a suspend image. The original author (Marc Alexander Lehmann) donated it to Suspend2. I have converted it to cryptoapi with a recent

LZF Cryptoapi support.

2005-07-18 Thread Nigel Cunningham
Hi again. Here's another resend, this time adding an lzf cryptoapi module. LZF is a very fast compressor which typically achieves approximately 50% compression on a suspend image. The original author (Marc Alexander Lehmann) donated it to Suspend2. I have converted it to cryptoapi with a recent