aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/md5.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-01-28 21:49:42 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-01-28 21:49:42 -0800
commit5e98b2f1caefd9b6a26d95a91c14474c6880ea39 (patch)
tree2e02bb386f60f0cb895a42956d61d9ec8927479b /com32/libutil/md5.c
parent5a8e4fc8351b5d40bc05ad99d88a2355337dd899 (diff)
downloadsyslinux-5e98b2f1caefd9b6a26d95a91c14474c6880ea39.tar.gz
syslinux-5e98b2f1caefd9b6a26d95a91c14474c6880ea39.tar.xz
syslinux-5e98b2f1caefd9b6a26d95a91c14474c6880ea39.zip
menu: clean up and fix MD5 password code
MD5 password code would append the encrypted password to a previous password, with the result that it would never match after picking a wrong password. Fix.
Diffstat (limited to 'com32/libutil/md5.c')
-rw-r--r--com32/libutil/md5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/libutil/md5.c b/com32/libutil/md5.c
index 0e53db39..0a2c3dca 100644
--- a/com32/libutil/md5.c
+++ b/com32/libutil/md5.c
@@ -80,7 +80,6 @@ static unsigned char PADDING[64] = {
void
MD5Init (MD5_CTX *context)
{
-
context->count[0] = context->count[1] = 0;
/* Load magic initialization constants. */
@@ -90,7 +89,7 @@ MD5Init (MD5_CTX *context)
context->state[3] = 0x10325476;
}
-/*
+/*
* MD5 block update operation. Continues an MD5 message-digest
* operation, processing another message block, and updating the
* context.