WIZnet PPPoE application library

Dependents:   WIZnet_PPPoE

How to use??

1. Set MAC address, IP address, Subnet mask, gateway address.

2. Run ppp_start function.

End~

Committer:
hjjeon
Date:
Wed Oct 29 06:17:02 2014 +0000
Revision:
0:7a9cde4dbf0b
WIZnet PPPoE application library

Who changed what in which revision?

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