Dependencies:   FatFileSystem mbed WeatherMeters SDFileSystem

Committer:
dcoban
Date:
Tue Apr 03 18:43:13 2012 +0000
Revision:
0:1a61c61d0845

        

Who changed what in which revision?

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