GPG 1.0.6 bug - sign/encrypt/decrypt 0 bytes.

Sandeep Sikka sandeep_sikka@hotmail.com
Sat May 11 00:12:02 2002


Hi,

If I sign/encrypt & then decrypt 0 bytes, I get junk. I don't get 0 bytes. 
If I use even one byte, I have no problems. If I just encrypt/decrypt 0 
bytes, I get 0 bytes in return. But if I sign, I have problems. Is this a 
known bug with GPG? Or am I not understanding & using GPG properly?

Thanks!

Sandeep.

----
sikka@debian:~$ gpg --version
gpg (GnuPG) 1.0.6
Copyright (C) 2001 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
----

sikka@debian:~$ gpg --list-keys
/u3/sikka/.gnupg/pubring.gpg
----------------------------
pub  1024D/85DEA7EC 2002-05-10 Sandeep Sikka (test key) 
<sikka@iamtesting.com>
sub  1024g/64B4BEA2 2002-05-10
----

# Encrypt 0 bytes - NO PROBLEM
sikka@debian:~$ echo -n | gpg -ea -r sikka@iamtesting.com -u 
sikka@iamtesting.com | gpg --decrypt
gpg: NOTE: secret key 85DEA7EC is NOT protected.
gpg: NOTE: secret key 85DEA7EC is NOT protected.
gpg: encrypted with 1024-bit ELG-E key, ID 64B4BEA2, created 2002-05-10
      "Sandeep Sikka (test key) <sikka@iamtesting.com>"
----

# Sign/encrypt one byte - NO PROBLEM
sikka@debian:~$ echo X | gpg -sea -r sikka@iamtesting.com -u 
sikka@iamtesting.com | gpg --decrypt
gpg: NOTE: secret key 85DEA7EC is NOT protected.
gpg: NOTE: secret key 85DEA7EC is NOT protected.
gpg: encrypted with 1024-bit ELG-E key, ID 64B4BEA2, created 2002-05-10
      "Sandeep Sikka (test key) <sikka@iamtesting.com>"
X
gpg: Signature made Fri May 10 18:05:33 2002 EDT using DSA key ID 85DEA7EC
gpg: Good signature from "Sandeep Sikka (test key) <sikka@iamtestng.com>"
----

# Sign/Encrypt 0 bytes - PROBLEM CASE
sikka@debian:~$ echo -n | gpg -sea -r sikka@iamtesting.com -u 
sikka@iamtesting.com | gpg --decrypt
gpg: NOTE: secret key 85DEA7EC is NOT protected.
gpg: NOTE: secret key 85DEA7EC is NOT protected.
gpg: encrypted with 1024-bit ELG-E key, ID 64B4BEA2, created 2002-05-10
      "Sandeep Sikka (test key) <sikka@iamtesting.com>"
?b<ÜDfbùú4RÞNbÄÃ ÁF>/èLErå9æCmÜsâ(×t
----











_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com