This is an OSC library for the mbed, created to be compatible with Recotana\'s OSCClass library (http://recotana.com) for the Arduino with Ethernet shield. I have also used parts of the OSC Transceiver(Sender/Receiver) code by xshige. It has many limitations, but it works for simple things (check comments on the mbedOSC.h). It will be evolving. written by: Alvaro Cassinelli, 7.10.2011

Dependencies:   mbed

Committer:
mbedalvaro
Date:
Sat Oct 15 14:15:55 2011 +0000
Revision:
0:f76708a93fb3
First working test of this simple OSC library.

Who changed what in which revision?

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