[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Signing ascii text
> (e.g., email messages, etc). Is there a convention for the end of line
> sequence that is to be used for the copy of the file that is run through
> the hash function? If there isn't, then the file hash will depend on the
Canonical Text has a CR and LF at the end of each line. This is
documented in some RFC. All (most?) protocols used on internet such
as smtp, finger, etc, use this format. The possible justification
is that an extra linefeed or a carriage return is not as bad as a missing
one.
For e-mail you may have other problems, if the messages go through
gateways that like to munge messages. For example your tabs could
be expanded into spaces, or the other way around. Some character
set conversions may be done.
Blank lines may be removed or added.
--
Yanek Martinson mthvax.cs.miami.edu!safe0!yanek uunet!medexam!yanek
this address preferred -->> [email protected] <<-- this address preferred
Phone (305) 765-6300 daytime FAX: (305) 765-6708 1321 N 65 Way/Hollywood
(305) 963-1931 evenings (305) 981-9812 Florida, 33024-5819