[INN-COMMITTERS] inn/lib (md5.c)

Russ Allbery rra at stanford.edu
Tue Sep 5 05:03:23 UTC 2000


    Date: Monday, September 4, 2000 @ 22:03:23
  Author: rra

Update of /dist1/cvs/isc/inn/inn/lib
     from pub3.rc.vix.com:/tmp/cvs-serv18964

Modified: md5.c

Significantly reformatted to look like the rest of INN code.  Now always
copy the input data to ensure alignment; even on those platforms that
support it, unaligned access is freqeuently slower.  Handle byte order
in a single place with macros to move all the rest of the #ifdefs out of
the normal code.  Rename all the functions to use a more standard naming
convention and change the types of the parameters to use more standard
types (like size_t for a buffer length).  Handle hashing more than 2GB
of data at a time while still properly updating the length (just because
we can).  md5_update now handles remembering how much data has been hashed,
eliminating the need for the MD5COUNT macro.  Add a new function, md5_hash,
which encapsulates the process of initializing and completing the hash
function and extracting the digest.  Added extensive comments on what was
going on and why things are done the way they are.




More information about the inn-committers mailing list