<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
I have a python script that ran very well, each day decrypting
files. Few days ago the script has stopped at a certain encrypted
archive and the process was hanging since.<br>
I have drilled down and what happens is that gnupg is actually
tripping on a encrypted file. Trying the decryption outside python,
just with the regular command line:<br>
<br>
<tt>gpg -vv --decrypt 2018-06-14.tbz.gpg > 2018-06-14.tbz</tt><br>
<br>
after requesting for the passphrase it says:<br>
<br>
<tt>gpg: 3DES encrypted data</tt><tt><br>
</tt><tt>:compressed packet: algo=1</tt><tt><br>
</tt><tt>:literal data packet:</tt><tt><br>
</tt><tt> mode b (62), created 1528912641, name="",</tt><tt><br>
</tt><tt> raw data: unknown length</tt><tt><br>
</tt><tt>gpg: original file name=''</tt><tt><br>
</tt><tt>gpg: block_filter 0x186f090: read error
(size=13002,a->size=13002)</tt><tt><br>
</tt><tt>:compressed packet: algo=42</tt><tt><br>
</tt><tt>gpg: uncompressing failed: Unknown compression algorithm</tt><tt><br>
</tt><br>
and then it hangs like this for days!<br>
<br>
<br>
Now, it might be a defective encryption with this file, I don't care
much. I'd just like gnupg to move over the errors, i.e. exit after
finishing processing or after unsuccessfuly trying to process the
file. <br>
<br>
So, 2 questions:<br>
1. Is it "normal" to hang like this or it is a bug ?<br>
2. Is there any option I can pass to gnupg in command line so that
it goes on in case of errors instead of hanging?<br>
<br>
<br>
I use this version on CentOS 7:<br>
<tt><i>gpg (GnuPG) 2.0.22</i></tt><tt><i><br>
</i></tt><tt><i>libgcrypt 1.5.3</i></tt><tt><i><br>
</i></tt><tt><i>Copyright (C) 2013 Free Software Foundation, Inc.</i></tt><tt><i><br>
</i></tt><tt><i>License GPLv3+: GNU GPL version 3 or later
<a class="moz-txt-link-rfc2396E" href="http://gnu.org/licenses/gpl.html"><http://gnu.org/licenses/gpl.html></a></i></tt><tt><i><br>
</i></tt><tt><i>This is free software: you are free to change and
redistribute it.</i></tt><tt><i><br>
</i></tt><tt><i>There is NO WARRANTY, to the extent permitted by
law.</i></tt><tt><i><br>
</i></tt><tt><i><br>
</i></tt><tt><i>Home: ~/.gnupg</i></tt><tt><i><br>
</i></tt><tt><i>Supported algorithms:</i></tt><tt><i><br>
</i></tt><tt><i>Pubkey: RSA, ?, ?, ELG, DSA</i></tt><tt><i><br>
</i></tt><tt><i>Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192,
AES256, TWOFISH,</i></tt><tt><i><br>
</i></tt><tt><i> CAMELLIA128, CAMELLIA192, CAMELLIA256</i></tt><tt><i><br>
</i></tt><tt><i>Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384,
SHA512, SHA224</i></tt><tt><i><br>
</i></tt><tt><i>Compression: Uncompressed, ZIP, ZLIB, BZIP2</i></tt><i><br>
</i><br>
<br>
Thanks,<br>
Lian<br>
</body>
</html>
<br>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><font size="1">Virus Bulletin Ltd, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, Oxon, United Kingdom.</font></div><div style="font-size:1.3em"><br></div>