japanese tweeting sample with newer version libraries

Dependencies:   TextLCD mbed

Committer:
nxpfan
Date:
Fri Aug 31 08:29:07 2012 +0000
Revision:
1:57304b082776
Parent:
0:66c7c9c4f765
mbed-lib has been updated also

Who changed what in which revision?

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