TwitterExample with newer library (2012Aug)

Dependencies:   EthernetNetIf HTTPClient mbed

Committer:
nxpfan
Date:
Wed Aug 29 03:50:19 2012 +0000
Revision:
0:075157567b0c
simple twitter example with newer library

Who changed what in which revision?

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