Ethernetwebsoc

Dependencies:   C12832_lcd LM75B WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip

Committer:
GordonSin
Date:
Fri May 31 04:09:54 2013 +0000
Revision:
0:0ed2a7c7190c
31/5/2013;

Who changed what in which revision?

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