NetTribute library with debug turned on in FShandler Donatien Garner -> Segundo Equipo -> this version

Committer:
hexley
Date:
Fri Nov 19 01:54:45 2010 +0000
Revision:
0:281d6ff68967

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hexley 0:281d6ff68967 1 /*
hexley 0:281d6ff68967 2 ***********************************************************************
hexley 0:281d6ff68967 3 ** md5.h -- header file for implementation of MD5 **
hexley 0:281d6ff68967 4 ** RSA Data Security, Inc. MD5 Message-Digest Algorithm **
hexley 0:281d6ff68967 5 ** Created: 2/17/90 RLR **
hexley 0:281d6ff68967 6 ** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version **
hexley 0:281d6ff68967 7 ** Revised (for MD5): RLR 4/27/91 **
hexley 0:281d6ff68967 8 ** -- G modified to have y&~z instead of y&z **
hexley 0:281d6ff68967 9 ** -- FF, GG, HH modified to add in last register done **
hexley 0:281d6ff68967 10 ** -- Access pattern: round 2 works mod 5, round 3 works mod 3 **
hexley 0:281d6ff68967 11 ** -- distinct additive constant for each step **
hexley 0:281d6ff68967 12 ** -- round 4 added, working mod 7 **
hexley 0:281d6ff68967 13 ***********************************************************************
hexley 0:281d6ff68967 14 */
hexley 0:281d6ff68967 15
hexley 0:281d6ff68967 16 /*
hexley 0:281d6ff68967 17 ***********************************************************************
hexley 0:281d6ff68967 18 ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. **
hexley 0:281d6ff68967 19 ** **
hexley 0:281d6ff68967 20 ** License to copy and use this software is granted provided that **
hexley 0:281d6ff68967 21 ** it is identified as the "RSA Data Security, Inc. MD5 Message- **
hexley 0:281d6ff68967 22 ** Digest Algorithm" in all material mentioning or referencing this **
hexley 0:281d6ff68967 23 ** software or this function. **
hexley 0:281d6ff68967 24 ** **
hexley 0:281d6ff68967 25 ** License is also granted to make and use derivative works **
hexley 0:281d6ff68967 26 ** provided that such works are identified as "derived from the RSA **
hexley 0:281d6ff68967 27 ** Data Security, Inc. MD5 Message-Digest Algorithm" in all **
hexley 0:281d6ff68967 28 ** material mentioning or referencing the derived work. **
hexley 0:281d6ff68967 29 ** **
hexley 0:281d6ff68967 30 ** RSA Data Security, Inc. makes no representations concerning **
hexley 0:281d6ff68967 31 ** either the merchantability of this software or the suitability **
hexley 0:281d6ff68967 32 ** of this software for any particular purpose. It is provided "as **
hexley 0:281d6ff68967 33 ** is" without express or implied warranty of any kind. **
hexley 0:281d6ff68967 34 ** **
hexley 0:281d6ff68967 35 ** These notices must be retained in any copies of any part of this **
hexley 0:281d6ff68967 36 ** documentation and/or software. **
hexley 0:281d6ff68967 37 ***********************************************************************
hexley 0:281d6ff68967 38 */
hexley 0:281d6ff68967 39
hexley 0:281d6ff68967 40 #ifndef MD5_H
hexley 0:281d6ff68967 41 #define MD5_H
hexley 0:281d6ff68967 42
hexley 0:281d6ff68967 43 /* Data structure for MD5 (Message-Digest) computation */
hexley 0:281d6ff68967 44 typedef struct {
hexley 0:281d6ff68967 45 u32_t i[2]; /* number of _bits_ handled mod 2^64 */
hexley 0:281d6ff68967 46 u32_t buf[4]; /* scratch buffer */
hexley 0:281d6ff68967 47 unsigned char in[64]; /* input buffer */
hexley 0:281d6ff68967 48 unsigned char digest[16]; /* actual digest after MD5Final call */
hexley 0:281d6ff68967 49 } MD5_CTX;
hexley 0:281d6ff68967 50
hexley 0:281d6ff68967 51 void MD5Init ( MD5_CTX *mdContext);
hexley 0:281d6ff68967 52 void MD5Update( MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen);
hexley 0:281d6ff68967 53 void MD5Final ( unsigned char hash[], MD5_CTX *mdContext);
hexley 0:281d6ff68967 54
hexley 0:281d6ff68967 55 #endif /* MD5_H */