LwIP with PPP & Ethernet integration

Dependents:   NetworkingCoreLib

This is the mbed port of the LwIP stack: http://savannah.nongnu.org/projects/lwip/

It includes contributed content from NXP's port for LPCxxxx devices: http://www.lpcware.com/content/project/lightweight-ip-lwip-networking-stack

Licence

LwIP is licenced under the BSD licence:

Copyright (c) 2001-2004 Swedish Institute of Computer Science. 
All rights reserved. 
Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met: 
1. Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer. 
2. Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation 
and/or other materials provided with the distribution. 
3. The name of the author may not be used to endorse or promote products 
derived from this software without specific prior written permission. 
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 
SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.
Committer:
donatien
Date:
Fri May 25 08:56:35 2012 +0000
Revision:
2:1a87f74b8e3b
Parent:
0:8e01dca41002
Removed compilation of EMAC driver when using PPP

Who changed what in which revision?

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