ietf-openpgp
[Top] [All Lists]

Re: Tailing whitespace, armor lines, and clearsigned messages

2002-03-21 15:48:13

On Thu, Mar 21, 2002 at 03:11:25PM -0800, Hal Finney wrote:
David Shaw writes:
Now here's the part I don't quite get - if it is okay to allow
trailing whitespace in the message contents, why is it not okay to
allow trailing whitespace after the armor header?

The reason for specifying the treatment of trailing whitespace in the
message contents is because that portion is hashed.  What the spec
means here is that trailing whitespace is not included in the hash.
The BEGIN line is not hashed so there is no need to say what to do with
trailing whitespace there.

Aha, it just clicked.  "These line endings are considered a part of
the Armor Header Line for the purposes of determining the content they
delimit."  It's just forcing that anything on the armor header line
isn't considered content.

Thanks,

David

-- 
David Shaw          |  Technical Lead
<dshaw(_at_)akamai(_dot_)com>  |  Enterprise Content Delivery
617-250-3028        |  Akamai Technologies

<Prev in Thread] Current Thread [Next in Thread>