ProjetoBB

Dependencies:   F7_Ethernet WebSocketClient mbed mcp3008

Fork of Nucleo_F746ZG_Ethernet by Dieter Graef

Committer:
DieterGraef
Date:
Sat Jun 18 10:49:12 2016 +0000
Revision:
0:f9b6112278fe
Ethernet for the NUCLEO STM32F746 Board Testprogram uses DHCP and NTP to set the clock

Who changed what in which revision?

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