I'm reading in binary files that I want to compress with Gzip in Crypto++. I found this example (http://www.codeproject.com/Articles/835/Compression-and-decompression-using-the-Crypto-lib), which is for an earlier version of Crypto++.
I've noticed there is no longer a Gzip.Close() function for zipping or unzipping. Is there another way to signal that I'm done providing data to be compressed (or uncompressed)? And my other question relates to the byte* array used to read in data. I know I can cast char* to byte* without any problem, but other than iterating through every byte in an array, I don't see any way to create a const byte* array from data I've loaded in from a file. The read statements all produce output in char* arrays. I tried casting my char* to byte* and using Gzip.PutModifiable() to pass my data on for compression, but apparently I'm not getting actual compression that way. (Unless it's somehow possible to DEFLATE a 16MB file to 10 bytes!) Do I need to do something to indicate I'm done providing data to DEFLATE or INFLATE? And does PutModifiable() work differently than Put()? (I know it's not a Gzip issue, but I can't find a way to convert a char* array to a const byte* array and I have been searching.) -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
