On Tue, May 02, 2006 at 10:55:51PM -0700, Andrew Pimlott wrote:
> Package: gnupg
> Version: 1.4.2.2-1
> Severity: normal
> 
> Messages clearsigned and then "decrypted" may not return the original
> message.  In particular, a newline may be added.
> 
>     % echo -n hello > out
>     % ls -l out
>     -rw-rw-r-- 1 andrew andrew 5 2006-04-06 15:51 out
>     % gpg --clearsign out
>     % gpg --decrypt --output out2 out.asc
>     gpg: Signature made Thu 06 Apr 2006 03:51:09 PM PDT using DSA key ID 
> 43ABB76D
>     gpg: Good signature from "Andrew Pimlott <[EMAIL PROTECTED]>"
>     % ls -l out2 
>     -rw-rw-r-- 1 andrew andrew 6 2006-04-06 15:51 out2
> 
> If you clearsign both "hello" and "hello\n", you will see that they
> result in the same "SIGNED MESSAGE".

This is not a bug.  Clearsigned messages are not reversible to restore
the original message including line endings and trailing whitespace.
If perfect reversibility is desired, you must use regular signatures.

David


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to