LineLedControl

Dependencies:   LPD8806 mbed

Fork of LPD8806_Test by Jelmer Tiete

Committer:
sfjmt
Date:
Mon Aug 19 12:14:37 2013 +0000
Revision:
3:b0a1b4b24d3c
LPD8806 control

Who changed what in which revision?

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