Brandon Fictorie / Mbed 2 deprecated BF_Websocket

Dependencies:   mbed

Committer:
bfictorie
Date:
Sun Mar 25 17:26:30 2012 +0000
Revision:
0:8cdad1c73e8e

        

Who changed what in which revision?

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