A modified version of http://mbed.org/users/segundo/libraries/NetServices/ljhqix to add HTTP proxy feature (based on http://mbed.org/users/igorsk/programs/NetServicesSource/ltjpag)

Dependents:   SenseClient

Committer:
mimil
Date:
Tue Sep 06 13:26:45 2011 +0000
Revision:
0:308f83189a3f

        

Who changed what in which revision?

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