gpg bug with conventional encryption

diastry at saiknes.lv diastry at saiknes.lv
Thu Feb 15 20:18:03 CET 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to encrypt file conventionally so that PGP 2.6 can decrypt it
but... it is not working... and I think i is because of bug in GPG

when I try:
  gpg --rfc1991 --digest-algo md5 --cipher-algo idea -c a.txt
it does not works.

but when I add --set-filesize 33 (a.txt is 33 bytes long):
  gpg --rfc1991 --digest-algo md5 --cipher-algo idea --set-filesize 33 -c a.txt
it works.

I found that in first case GPG writes packet size type field to 3 "no size" but
still writes 2 byte size (type 1) to file (and this is wrong) !

when --set-filesize option is used GPG writes size type to 0 (1 byte size) and
one size byte
(I did not tested with longer files)

== <EOF> ==
Disastry  http://i.am/disastry/
http://disastry.dhs.org/pgp <--PGP plugins for Netscape and MDaemon
       ^^^^^^^^^--^^^^^^^^^----GPG for Win32 (supports loadable modules & IDEA)
       ^--------PGP 2.6.3ia-cb (supports CAST5 and BLOWFISH)

-----BEGIN PGP SIGNATURE-----
Version: Netscape PGP half-Plugin 0.14 by Disastry / PGPsdk v1.7.1

iQA/AwUBOowNcDBaTVEuJQxkEQJOtACdEHxexXnHNoSmOExR1oXcFsJxsGMAn3f1
bxONHqkZh8tmQRkUrkC4WyRQ
=mFmZ
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list