I have a problem getting this to work. Server only recieves half of the data being sent. Whats wrong

Dependencies:   mbed

Committer:
tax
Date:
Tue Mar 29 13:20:15 2011 +0000
Revision:
0:66300c77c6e9

        

Who changed what in which revision?

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