From: Christos Zoulas Date: Tue, 24 Nov 1998 19:30:38 +0000 (+0000) Subject: MD4Update takes bytes not bits! Now the regression test of the README.MSCHAP80 X-Git-Tag: RELEASE_2_3_6~46 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=4e3c66a04c0b86108858081d434bc45983471990 MD4Update takes bytes not bits! Now the regression test of the README.MSCHAP80 file works. --- diff --git a/pppd/chap_ms.c b/pppd/chap_ms.c index f58bafc..114b951 100644 --- a/pppd/chap_ms.c +++ b/pppd/chap_ms.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: chap_ms.c,v 1.10 1998/11/07 06:59:26 paulus Exp $"; +static char rcsid[] = "$Id: chap_ms.c,v 1.11 1998/11/24 19:30:38 christos Exp $"; #endif #ifdef CHAPMS @@ -272,7 +272,7 @@ ChapMS_NT(rchallenge, rchallenge_len, secret, secret_len, response) unicodePassword[i * 2] = (u_char)secret[i]; MD4Init(&md4Context); - MD4Update(&md4Context, unicodePassword, secret_len * 2 * 8); /* Unicode is 2 bytes/char, *8 for bit count */ + MD4Update(&md4Context, unicodePassword, secret_len * 2); MD4Final(hash, &md4Context); /* Tell MD4 we're done */