Ok, I finally had a chance to work on this some more and have pushed the
changes to github.  Decompression now works for Algorithms 1,2 (RFC 1951,
1952) -- ZIP / ZLIB.

I'm not entirely happy with how the ZLIB decompression works. I basically
read the RFC, and have forced the data to be read through the ZIP/RFC 1951,
as this is how it appears most of these messages are. I found little from
existing JS libraries that deal directly with RFC 1950.

I believe the biggest change that needs to be made to the ZLIB
decompression is the checking of the ADLER 32 checksum, which I didn't get
a chance to do.

Anyway, the library is a little bigger now as I added the inflate from
zip.js (the LICENSE info is intact in the file); but also more capable. In
the Mymail-Crypt for Gmail plugin, people were having issues receiving
messages from other clients, so I think this is a pretty useful feature to
have.

Sean

On Mon, Apr 23, 2012 at 11:04 PM, Sean Colyer <[email protected]> wrote:

> Not sure if anyone else was looking at this, but I think I've got ZIP (RFC
> 1951) working based on the zip.js project. It might also do RFC 1950 or
> ZLIB as well, I'll have to check.  I'll try to push the code to github
> tomorrow.
>
> Sean
>
>
> On Tue, Apr 17, 2012 at 5:06 AM, Alex (via OpenPGP.js) <[email protected]
> > wrote:
>
>> Dear Sean,
>>
>> forwarding it to the list since I think GitHub only sends notifications
>> to me.
>>
>> Best regards, Alex
>>
>> Begin forwarded message:
>>
>> > From: Sean Colyer <
>> reply+i-3780616-506cb2d54b1060b01187f69ddf1beb7f1b3b22fe-307...@reply.github.com
>> >
>> > Subject: Re: [openpgpjs] Missing compression (zlib is default) (#38)
>> > Date: 17. April 2012 06:20:37 MESZ
>> > To: Alex <[email protected]>
>> >
>> > Has anyone taken a crack at this yet?
>> >
>> > I'm running into an issue where users are unable to receive mail from
>> many clients, and the issue seems to be that they are using compression
>> (Algo 1-- ZIP).  RFC 4880 advises we should at least be able to decrypt to
>> avoid this situation.
>> >
>> > I'm looking at incorporating the deflate from:
>> https://github.com/gildas-lormeau/zip.js .  Does anyone else have any
>> thoughts on this or looked at integrating it?
>> >
>> > ---
>> > Reply to this email directly or view it on GitHub:
>> > https://github.com/openpgpjs/openpgpjs/issues/38#issuecomment-5168092
>>
>> _______________________________________________
>>
>> http://openpgpjs.org
>>
>
>
_______________________________________________

http://openpgpjs.org

Reply via email to