source: rtems-libbsd/dhcpcd/crypt/md5.h @ f2ed769

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since f2ed769 was f2ed769, checked in by Sebastian Huber <sebastian.huber@…>, on 01/30/14 at 12:29:46

DHCPCD(8): Import

Import DHCPCD(8) from:

http://roy.marples.name/projects/dhcpcd/

The upstream sources can be obtained via:

fossil clone http://roy.marples.name/projects/dhcpcd

The imported version is 2014-01-29 19:46:44 [6b209507bb].

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 * This code implements the MD5 message-digest algorithm.
3 * The algorithm is due to Ron Rivest.  This code was
4 * written by Colin Plumb in 1993, no copyright is claimed.
5 * This code is in the public domain; do with it what you wish.
6 *
7 * Equivalent code is available from RSA Data Security, Inc.
8 * This code has been tested against that, and is equivalent,
9 * except that you don't need to include two pages of legalese
10 * with every copy.
11 *
12 * To compute the message digest of a chunk of bytes, declare an
13 * MD5Context structure, pass it to MD5Init, call MD5Update as
14 * needed on buffers full of bytes, and then call MD5Final, which
15 * will fill a supplied 16-byte array with the digest.
16 */
17
18#ifndef MD5_H_
19#define MD5_H_
20
21#define MD5_DIGEST_LENGTH       16
22#define MD5_BLOCK_LENGTH        64
23
24typedef struct MD5Context {
25        uint32_t state[4];      /* state (ABCD) */
26        uint64_t count;         /* number of bits, modulo 2^64 (lsb first) */
27        unsigned char buffer[MD5_BLOCK_LENGTH]; /* input buffer */
28} MD5_CTX;
29
30void    MD5Init(MD5_CTX *);
31void    MD5Update(MD5_CTX *, const unsigned char *, size_t);
32void    MD5Final(unsigned char[MD5_DIGEST_LENGTH], MD5_CTX *);
33#endif
Note: See TracBrowser for help on using the repository browser.