ソースの整理中ですが、利用はできます。

Dependencies:   EthernetInterface HttpServer TextLCD mbed-rpc mbed-rtos mbed Socket lwip-eth lwip-sys lwip

Committer:
yueee_yt
Date:
Wed Mar 12 04:19:54 2014 +0000
Revision:
0:7766f6712673
???????????????

Who changed what in which revision?

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