Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip by
md5.h
00001 /* 00002 *********************************************************************** 00003 ** md5.h -- header file for implementation of MD5 ** 00004 ** RSA Data Security, Inc. MD5 Message-Digest Algorithm ** 00005 ** Created: 2/17/90 RLR ** 00006 ** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version ** 00007 ** Revised (for MD5): RLR 4/27/91 ** 00008 ** -- G modified to have y&~z instead of y&z ** 00009 ** -- FF, GG, HH modified to add in last register done ** 00010 ** -- Access pattern: round 2 works mod 5, round 3 works mod 3 ** 00011 ** -- distinct additive constant for each step ** 00012 ** -- round 4 added, working mod 7 ** 00013 *********************************************************************** 00014 */ 00015 00016 /* 00017 *********************************************************************** 00018 ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. ** 00019 ** ** 00020 ** License to copy and use this software is granted provided that ** 00021 ** it is identified as the "RSA Data Security, Inc. MD5 Message- ** 00022 ** Digest Algorithm" in all material mentioning or referencing this ** 00023 ** software or this function. ** 00024 ** ** 00025 ** License is also granted to make and use derivative works ** 00026 ** provided that such works are identified as "derived from the RSA ** 00027 ** Data Security, Inc. MD5 Message-Digest Algorithm" in all ** 00028 ** material mentioning or referencing the derived work. ** 00029 ** ** 00030 ** RSA Data Security, Inc. makes no representations concerning ** 00031 ** either the merchantability of this software or the suitability ** 00032 ** of this software for any particular purpose. It is provided "as ** 00033 ** is" without express or implied warranty of any kind. ** 00034 ** ** 00035 ** These notices must be retained in any copies of any part of this ** 00036 ** documentation and/or software. ** 00037 *********************************************************************** 00038 */ 00039 00040 #ifndef MD5_H 00041 #define MD5_H 00042 00043 /* Data structure for MD5 (Message-Digest) computation */ 00044 typedef struct { 00045 u32_t i[2]; /* number of _bits_ handled mod 2^64 */ 00046 u32_t buf[4]; /* scratch buffer */ 00047 unsigned char in[64]; /* input buffer */ 00048 unsigned char digest[16]; /* actual digest after MD5Final call */ 00049 } MD5_CTX; 00050 00051 void MD5Init ( MD5_CTX *mdContext); 00052 void MD5Update( MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen); 00053 void MD5Final ( unsigned char hash[], MD5_CTX *mdContext); 00054 00055 #endif /* MD5_H */
Generated on Tue Jul 12 2022 11:29:37 by
