First step: AutoIP compiled in and working

Dependencies:   mbed

Committer:
darran
Date:
Fri Jun 18 15:54:21 2010 +0000
Revision:
1:4218cacaf696
Parent:
0:55a05330f8cc

        

Who changed what in which revision?

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