summaryrefslogtreecommitdiffstats
path: root/crypto/md32_common.h
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2007-07-23 13:57:15 +0000
committerAndy Polyakov <appro@openssl.org>2007-07-23 13:57:15 +0000
commit20f7563f3dedfcba61756ec2f97fcbd64aea1dd1 (patch)
tree46d9a8b106b9550020c43d3a8822ef3fa54bc816 /crypto/md32_common.h
parent3df2eff4bd39ecdd94fc559acd78e581d302f68d (diff)
md32_common.h update.
Diffstat (limited to 'crypto/md32_common.h')
-rw-r--r--crypto/md32_common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/md32_common.h b/crypto/md32_common.h
index 8fda6ffded..089c450290 100644
--- a/crypto/md32_common.h
+++ b/crypto/md32_common.h
@@ -1,6 +1,6 @@
/* crypto/md32_common.h */
/* ====================================================================
- * Copyright (c) 1999-2006 The OpenSSL Project. All rights reserved.
+ * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -354,9 +354,11 @@ int HASH_FINAL (unsigned char *md, HASH_CTX *c)
if (n > (HASH_CBLOCK-8))
{
+ memset (p+n,0,HASH_CBLOCK-n);
+ n=0;
HASH_BLOCK_DATA_ORDER (c,p,1);
- memset (p,0,HASH_CBLOCK);
}
+ memset (p+n,0,HASH_CBLOCK-8-n);
p += HASH_CBLOCK-8;
#if defined(DATA_ORDER_IS_BIG_ENDIAN)