/[cvs]/eggdrop1.9/src/md5.h
ViewVC logotype

Contents of /eggdrop1.9/src/md5.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sun Nov 3 23:16:09 2002 UTC (16 years, 11 months ago) by stdarg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-csrc
FILE REMOVED
* Moved md5 code to lib/eggdrop so I can use it for password hashing
* Passwords are stored as standard hex encoding of md5(salt + password)
* Started moving script interface functions to modules/script

1 /*
2 * This is an OpenSSL-compatible implementation of the RSA Data Security,
3 * Inc. MD5 Message-Digest Algorithm.
4 *
5 * Written by Solar Designer <solar@openwall.com> in 2001, and placed in
6 * the public domain. See md5.c for more information.
7 */
8
9 #ifndef _MD5_H
10 #define _MD5_H
11
12 /* Any 32-bit or wider integer data type will do */
13 typedef unsigned long MD5_u32plus;
14
15 typedef struct {
16 MD5_u32plus lo, hi;
17 MD5_u32plus a, b, c, d;
18 unsigned char buffer[64];
19 MD5_u32plus block[16];
20 } MD5_CTX;
21
22 extern void MD5_Init(MD5_CTX *ctx);
23 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
24 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
25
26 #endif /* !_MD5_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23