Trailing white space

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

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 -
	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  ;)


 PGP key -
 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
Version: GnuPG v1.2.4 (FreeBSD)
Comment: What is this gibberish?  -


More information about the Gnupg-users mailing list