[Fwd: Re: [ietf-dkim] canonicalized null body and dkim]

Charles Lindsey chl at clerew.man.ac.uk
Thu Dec 21 03:32:53 PST 2006


On Thu, 21 Dec 2006 04:50:07 -0000, Tony Hansen <tony at att.com> wrote:


> Point 7:
> 	Another way of expressing this algorithm that people may find
> 	easier to understand is:
>
> 	"If the last line of the message does not end with CRLF, CRLF is
> 	added. Then, CRLF 0*CRLF is reduced to a single CRLF."

Well that would be better expressed as "1*CRLF is reduced to a single  
CRLF",
but you should be saying "If the last line of the body" rather than "If  
the last line of the message", because

------------------
Last-Header: foobarCRLF
CRLF
------------------

is a message with an empty body (read RFC 2822).

Or put it another way; the last line of what you hash MUST NEVER be empty  
(i.e. must never consist of CRLF with no preceding real text).

That was why I included my INFORMATIVE NOTE, just to remove any possible  
misinteroretations (and we have just seen how easily people misinterpret  
things :-( ).

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131                       
   Web: http://www.cs.man.ac.uk/~chl
Email: chl at clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5


More information about the ietf-dkim mailing list