[Pkg-openssl-devel] Bug#659251: openssl: enc: Bad compression ration with -z (zlib compression)
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Sat Apr 7 11:52:29 UTC 2012
tags 659251 + patch
thanks
* Roland Stigge | 2012-02-09 15:52:21 [+0100]:
>$ openssl enc -bf -in /usr/share/common-licenses/GPL-3 -out GPL-3.enc
>enter bf-cbc encryption password:
>Verifying - enter bf-cbc encryption password:
>$ openssl enc -bf -in /usr/share/common-licenses/GPL-3 -out GPL-3.enc-z -z
>enter bf-cbc encryption password:
>Verifying - enter bf-cbc encryption password:
>$ gzip -c /usr/share/common-licenses/GPL-3 > GPL-3.gz
>$ ls -l GPL-3* /usr/share/common-licenses/GPL-3
>-rw-r--r-- 1 rst rst 35168 Feb 9 15:39 GPL-3.enc
>-rw-r--r-- 1 rst rst 35189 Feb 9 15:39 GPL-3.enc-z
>-rw-r--r-- 1 rst rst 12143 Feb 9 15:40 GPL-3.gz
>-rw-r--r-- 1 root root 35147 Jul 2 2007 /usr/share/common-licenses/GPL-3
>$
The problem is that openssl tries to compress encrypted content which
seems not to work. The patch attached changes the order to first
compress and then encrypt.
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-enc-compress-before-compress-base64-is-applied.patch
Type: text/x-diff
Size: 2588 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openssl-devel/attachments/20120407/cbe93d9e/attachment.patch>
More information about the Pkg-openssl-devel
mailing list