Data compression APIs?

In designing the technology that satisfies the use case doc posted 
previously (http://www.w3.org/wiki/NetflixWebCryptoUseCase) it would 
appear that we need to support compression / decompression APIs.

The reason is that for our "MsgSec" protocol, we encrypt every message 
going over the wire and since encrypted data cannot be compressed, the 
compression has to happen before encryption. Therefore standard things 
like HTTP gzip compression will not work.

What we're looking for is something along the lines of:

   function compress(data, algorithm)
   function uncompress(data, algorithm)

where algorithm is one of the standard ones (gzip, bzip2, etc.)

Is this the right forum for looking at this type of functionality?

Mitch

Received on Thursday, 26 January 2012 01:13:03 UTC