HTTPClient using static IP

Dependencies:   mbed

Committer:
mr_q
Date:
Mon May 30 11:53:37 2011 +0000
Revision:
0:d8f2f7d5f31b
v0.01 Draft

Who changed what in which revision?

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