Decompressing Data

View: New views
2 Messages — Rating Filter:   Alert me  

Decompressing Data

by Crypt lib :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to perform a trivial test case of compressing "12345678901234567890" and then decompressing (via intermediate buffer to a third buffer compared to the first) with no success. Yes new envelopes are used for each transformation. It does not work and the object size just increases with each step and no errors are being thrown.

The manual's comment of "Do the same thing", which I've tried, make no sense to me as this in effect suggests Cryptlib autodetects wrapper info to know that it should decompress the information (and thus there exists uncompressed data sets that Cryptlib can confuse as compressed thus doing the wrogn operation) which in turn suggests that Cryptlib can't perform identical operations consecutively such as compressing a compressed object just to obfuscate the data a bit - Which makes no sense to me. I've tried playing around a bit and while I get different data with what I've tried I'm never getting back the original data.

The compression operations are cut and paste from the manual, so I can only assume that is working correctly.

Thus I conclude that I'm missing something that I have to do differently when decompressing but I can't find any sample code or comments in the manual suggesting what that is, and my stocastic attempts, as allways, are failing.

Any help is appreciated. Thanks

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.

Re: Decompressing Data

by Peter Gutmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Crypt lib" <cryptlib@...> writes:

>I'm trying to perform a trivial test case of compressing
>"12345678901234567890" and then decompressing (via intermediate buffer to a
>third buffer compared to the first) with no success. Yes new envelopes are
>used for each transformation. It does not work and the object size just
>increases with each step and no errors are being thrown.

What's the code you're using?  It sounds like you're repeatedly compressing
and re-compressing the same data.

Peter.

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.