This library is stripped down version of NetServices library. HTTP server and client function is NOT supported.

Dependents:   imu-daq-eth

Committer:
idinor
Date:
Wed Jul 20 11:45:39 2011 +0000
Revision:
0:dcf3c92487ca

        

Who changed what in which revision?

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