Netservices modded to read fragmented HTTP respsonse/payload from special purpose server - 180 bytes only

Committer:
RodColeman
Date:
Thu Sep 08 10:41:36 2011 +0000
Revision:
0:8f5825f330b0
setDataLen hacked to 180bytes

Who changed what in which revision?

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