MD5(9) message digest routines

Other Alias

MD5Init, MD5Transform


In sys/types.h In sys/md5.h Ft void Fn MD5Init MD5_CTX *buf Ft void Fn MD5Transform uint32_t buf[4] const unsigned char block[64]


The module implements the RSA Data Security, Inc. MD5 Message-Digest Algorithm (MD5). It produces 128-bit MD5 Digest of data.

must be called just before Fn MD5Transform will be used to produce a digest. The Fa buf argument is the storage for the digest being produced on subsequent calls to the Fn MD5Transform routine.
is the core of the MD5 algorithm, this alters an existing MD5 hash kept in Fa buf to reflect the addition of 64 characters of new data passed in Fa block argument.


The code for MD5 transform was taken from Colin Plumb's implementation, which has been placed in the public domain. The MD5 cryptographic checksum was devised by Ronald Rivest, and is documented in RFC 1321, "The MD5 Message Digest Algorithm".