From 4557e7022170cef4ee2a3a1b01810566957ce1aa Mon Sep 17 00:00:00 2001 From: "nelsonb%netscape.com" Date: Fri, 19 May 2000 02:10:33 +0000 Subject: [PATCH] Fix sha_fast for 64-bit solaris and 64-bit Alpha. --- security/nss/lib/freebl/sha_fast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/nss/lib/freebl/sha_fast.c b/security/nss/lib/freebl/sha_fast.c index 5f9ca2a3525..2debd83f782 100644 --- a/security/nss/lib/freebl/sha_fast.c +++ b/security/nss/lib/freebl/sha_fast.c @@ -137,7 +137,7 @@ void SHA1_End(SHA1Context *ctx, unsigned char *hashout, unsigned int *pDigestLen, unsigned int maxDigestLen) { - register unsigned long sizeHi, sizeLo; + register PRUint32 sizeHi, sizeLo; int i; static const unsigned char bulk_pad[64] = { 0x80,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -172,7 +172,7 @@ SHA1_End(SHA1Context *ctx, unsigned char *hashout, */ #if defined(IS_LITTLE_ENDIAN) for (i = 0; i < SHA1_LENGTH/4; i++) { - register unsigned long w = ctx->H[i]; + register PRUint32 w = ctx->H[i]; hashout[0] = ((unsigned char)(w >> 24)); hashout[1] = ((unsigned char)(w >> 16)); hashout[2] = ((unsigned char)(w >> 8)); @@ -197,7 +197,7 @@ static void shaCompress(SHA1Context *ctx) { int t; - register unsigned long A,B,C,D,E; + register PRUint32 A,B,C,D,E; #if defined(IS_LITTLE_ENDIAN) #define MSK 0x00FF00FF