lkml.org 
[lkml]   [2005]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [RFC] CryptoAPI & Compression
    From
    On Fri, Apr 01, 2005 at 03:36:23PM +0100, Artem B. Bityuckiy wrote:
    >
    > In our code we do zlib_deflate(stream, Z_SYNC_FLUSH), so we always flush
    > the output. So the final zlib_deflate(stream, Z_FINISH) requires 1 byte
    > for the EOB marker and 4 bytes for adler32 (5 bytes total). Thats all. If
    > we compress a huge buffer, then we still need to output those 5 bytes as
    > well. I.e, the overhead of each block *is not accumulated* ! I even need
    > to make the reserved space less then 12 bytes!

    I thought stored blocks (incompressible blocks) were limited to 64K
    in size, no? Please double check zlib_deflate/deflate.c and
    zlib_deflate/deftree.c.

    Cheers,
    --
    Visit Openswan at http://www.openswan.org/
    Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
    Home Page: http://gondor.apana.org.au/~herbert/
    PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-06 13:31    [W:2.965 / U:0.380 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site