Re: deflate crypto module questions

2008-06-27 Thread Geert Uytterhoeven
On Fri, 27 Jun 2008, Herbert Xu wrote: On Thu, Jun 26, 2008 at 06:07:29PM +0200, Geert Uytterhoeven wrote: But it also means it's not so easy to avoid allocating the compression buffer if you need decompression only. Or am I missing something? Well there are ways to solve this, e.g., by

Re: deflate crypto module questions

2008-06-26 Thread Geert Uytterhoeven
On Wed, 25 Jun 2008, Sebastian Siewior wrote: * Geert Uytterhoeven | 2008-06-25 19:26:28 [+0200]: I have a few questions about the deflate crypto module (crypto/deflate.c). 1. Why does it support decompression of full chunks only (i.e. all compressed data has to be passed at once)?

Re: deflate crypto module questions

2008-06-26 Thread Sebastian Siewior
* Geert Uytterhoeven | 2008-06-26 09:14:51 [+0200]: On Wed, 25 Jun 2008, Sebastian Siewior wrote: see. Other zlib users like ppp or jffs2 user zlib directly. However, the crypto API is the only place in kernel which provides you a generic interface for compression. Indeed. So if a

Re: deflate crypto module questions

2008-06-26 Thread Herbert Xu
Geert Uytterhoeven [EMAIL PROTECTED] wrote: 2. Why was the lazy allocation removed back in 2004? If you're interested in decompression only, it's a bit wasteful to allocate 262 KiB of memory for compression and never use it. The burden to save memory was simply moved to the user :)

Re: deflate crypto module questions

2008-06-26 Thread Geert Uytterhoeven
On Thu, 26 Jun 2008, Herbert Xu wrote: Geert Uytterhoeven [EMAIL PROTECTED] wrote: 2. Why was the lazy allocation removed back in 2004? If you're interested in decompression only, it's a bit wasteful to allocate 262 KiB of memory for compression and never use it. The burden to

Re: deflate crypto module questions

2008-06-26 Thread Herbert Xu
On Thu, Jun 26, 2008 at 06:07:29PM +0200, Geert Uytterhoeven wrote: But it also means it's not so easy to avoid allocating the compression buffer if you need decompression only. Or am I missing something? Well there are ways to solve this, e.g., by creating new interfaces that are compression

deflate crypto module questions

2008-06-25 Thread Geert Uytterhoeven
Hi, I have a few questions about the deflate crypto module (crypto/deflate.c). 1. Why does it support decompression of full chunks only (i.e. all compressed data has to be passed at once)? Is there a specific reason for that? Or is it just because so far nobody needed

Re: deflate crypto module questions

2008-06-25 Thread Sebastian Siewior
* Geert Uytterhoeven | 2008-06-25 19:26:28 [+0200]: Hi, Hello, I have a few questions about the deflate crypto module (crypto/deflate.c). 1. Why does it support decompression of full chunks only (i.e. all compressed data has to be passed at once)? Is there a specific reason for

Re: deflate crypto module questions

2008-06-25 Thread David Miller
From: Sebastian Siewior [EMAIL PROTECTED] Date: Wed, 25 Jun 2008 21:14:57 +0200 http://www.mail-archive.com/linux-crypto@vger.kernel.org/ or http://marc.info/?l=linux-crypto-vgerr=1b=200806w=2 I've added this to the vger list info for linux-crypto as follows: This is the