unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OpenBSD-5.7)
Page:
Section:
Apropos / Subsearch:
optional field

MD5(9)                   BSD Kernel Developer's Manual                  MD5(9)

NAME
     md5 -- message digest routines

SYNOPSIS
     #include <&lt;sys/kernel.h>&gt;

     void
     MD5Init(u_int32_t buf[4]);

     void
     MD5Transform(u_int32_t buf[4], u_int32_t const in[16]);

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

     MD5Init()     must be called just before MD5Transform() will be used to
                   produce a digest.  The buf argument is the storage for the
                   digest being produced on subsequent calls to the
                   MD5Transform() routine.

     MD5Transform() is the core of the MD5 algorithm, this alters an existing
                   MD5 hash kept in buf to reflect the addition of 16 long-
                   words of new data passed in in argument.

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

SEE ALSO
     random(4), arc4random(9)

BSD                            January 21, 2014                            BSD