Measure system

Dependencies:   EthernetNetIf mbed RF12B

Committer:
benecsj
Date:
Thu Mar 10 19:56:45 2011 +0000
Revision:
1:b26ab2467b1a

        

Who changed what in which revision?

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