Laser Sensing Display for UI interfaces in the real world

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

Committer:
mbedalvaro
Date:
Sun Sep 23 10:11:43 2012 +0000
Revision:
31:5f039cbddee8
this is quite nice, but  I am going to make a deep modification of the bouncing principle: instead of depending on the penetration, it will just be a factor over the speed (perfect elastic bouncing being factorElastic=1, and perfectly absorption=0);

Who changed what in which revision?

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