Trailing white space

Atom 'Smasher' atom-gpg at suspicious.org
Thu Mar 25 05:20:08 CET 2004


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

> How does GPG handles trailing white spaces when preparing cleartext
> signatures? Also, what is PGP8's default behavior? If anyone can shed
> light on this I would appreciate it.
>
> If the whitespaces are removed before calculating the signature, then
> are they removed from the document as well before it is sent out, or
> does the receiving side have to do it's own trimming of trailing
> whitespaces before calculating the signature?
========================

RFC 2440 - http://www.faqs.org/rfcs/rfc2440.html
	5.2.1.	Signature Types (0x01)
	7.1.	Dash-Escaped Text

the trailing whitespace is left intact in the document, and the signature
verification performs the same tricks "when the cleartext signature is
calculated" on the receiving end. at least, that's the way that GnuPG
seems to handle it, and i don't see anything in the RFC that specifies
removing the trailing whitespace from a document when signing it.

since that's the openPGP standard, i would hope that PGP8 does it that
way by default  ;)

hhmm...  this might cause problems if someone wants to sign a program
written in the 'whitespace' programming language  ;)
			http://compsoc.dur.ac.uk/whitespace/


        ...atom

 _________________________________________
 PGP key - http://atom.smasher.org/pgp.txt
 3EBE 2810 30AE 601D 54B2 4A90 9C28 0BBF 3D7D 41E3
 -------------------------------------------------

	"What you are seeing is not just a consolidation of seed
	 companies, it is really a consolidation of the entire food
	 chain. Since water is as central to food production as seed
	 is, and without water life is not possible, Monsanto is now
	 trying to establish its control over water."
		-- Robert Farley, Monsanto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
Comment: What is this gibberish?  -  http://atom.smasher.org/links/#digital_signatures

iD8DBQFAYl39nCgLvz19QeMRAnZ3AJwM0yODZeapL1SvNt9q2djH7DmzlQCeLMYG
F3d4G870LUNLdBMK9IADS6A=
=/8/Y
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list