mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.0t10
This commit is contained in:
23
md5.c
23
md5.c
@@ -3,11 +3,11 @@
|
||||
* md5 - RSA Data Security, Inc. MD5 Message-Digest Algorithm
|
||||
*
|
||||
* LANDON CURT NOLL DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
||||
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MER-
|
||||
* CHANTABILITY AND FITNESS. IN NO EVENT SHALL LANDON CURT
|
||||
* NOLL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
|
||||
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MER-
|
||||
* CHANTABILITY AND FITNESS. IN NO EVENT SHALL LANDON CURT
|
||||
* NOLL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
|
||||
* USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
@@ -23,13 +23,13 @@
|
||||
** **
|
||||
** License is also granted to make and use derivative works **
|
||||
** provided that such works are identified as "derived from the RSA **
|
||||
** Data Security, Inc. MD5 Message-Digest Algorithm" in all **
|
||||
** Data Security, Inc. MD5 Message-Digest Algorithm" in all **
|
||||
** material mentioning or referencing the derived work. **
|
||||
** **
|
||||
** RSA Data Security, Inc. makes no representations concerning **
|
||||
** RSA Data Security, Inc. makes no representations concerning **
|
||||
** either the merchantability of this software or the suitability **
|
||||
** of this software for any particular purpose. It is provided "as **
|
||||
** is" without express or implied warranty of any kind. **
|
||||
** is" without express or implied warranty of any kind. **
|
||||
** **
|
||||
** These notices must be retained in any copies of any part of this **
|
||||
** documentation and/or software. **
|
||||
@@ -39,7 +39,7 @@
|
||||
/*
|
||||
***********************************************************************
|
||||
** Message-digest routines: **
|
||||
** To form the message digest for a message M **
|
||||
** To form the message digest for a message M **
|
||||
** (1) Initialize a context buffer md5Ctx using MD5Init **
|
||||
** (2) Call MD5Update on md5Ctx and M **
|
||||
** (3) Call MD5Final on md5Ctx **
|
||||
@@ -254,8 +254,7 @@ MD5Final(HASH *state)
|
||||
SWAP_B8_IN_B32(md5Ctx->data + i,
|
||||
md5Ctx->data + i);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (count % 4) {
|
||||
math_error("This should not happen in MD5Final");
|
||||
/*NOTREACHED*/
|
||||
@@ -657,13 +656,13 @@ MD5_print(HASH *state)
|
||||
* form the hash value
|
||||
*/
|
||||
if (conf->calc_debug & CALCDBG_HASH_STATE) {
|
||||
char buf[DEBUG_SIZE+1]; /* hash value buffer */
|
||||
char buf[DEBUG_SIZE+1]; /* hash value buffer */
|
||||
|
||||
/*
|
||||
* print numeric debug value
|
||||
*
|
||||
* NOTE: This value represents only the hash value as of
|
||||
* the last full update or finalization. Thus it
|
||||
* the last full update or finalization. Thus it
|
||||
* may NOT be the actual hash value.
|
||||
*/
|
||||
sprintf(buf,
|
||||
|
Reference in New Issue
Block a user