Leest de waarde van een sensor binnen een maakt deze beschikbaar via internet

Dependencies:   NTPClient_NetServices mbed

Committer:
hendrikvincent
Date:
Mon Dec 02 09:01:23 2013 +0000
Revision:
0:05ccbd4f84f1
eerste programma;

Who changed what in which revision?

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