Re: [PATCH/RFC 1/4] crypto: Add partial decompression support to the CRYPTO API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 24, 2008 at 05:12:37PM +0100, Geert Uytterhoeven wrote:
> To solve this, add the following operations that support partial
> (de)compression:
>   - crypto_compress_{init,update,final}() for compression,
>   - crypto_decompress_{init,update,final}() for decompression.

Probably best to put this in a new type instead of crypto_comp.
That way you can still get a bisectable tree without having to
lump everything into one patch.

Doing that also means that you don't have to convert all the algorithms
at once (but please do convert them eventually so I don't have to :)

To make the conversion happen gradually you'd make all algorithms
of the new type available through the existing type (crypto_comp).
See how crypto_shash handles this with regards to the existing
crypto_hash type.

Once all algorithms are converted then you can convert the existing
users (new users can begin using the new type immediately).  Finally
you'd kill the crypto_comp type.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
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-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux