diff options
author | nelsonb%netscape.com <devnull@localhost> | 2000-05-19 02:10:33 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2000-05-19 02:10:33 +0000 |
commit | aa4cee92d3bc55b5d8694a80e6ae9de949d8d243 (patch) | |
tree | 7b597e1763337acb667fb6f653f9a90315bf076d | |
parent | b855daac6256fe6bf44fb6882e47a60ae1ae6ed0 (diff) | |
download | nss-hg-aa4cee92d3bc55b5d8694a80e6ae9de949d8d243.tar.gz |
Fix sha_fast for 64-bit solaris and 64-bit Alpha.
-rw-r--r-- | security/nss/lib/freebl/sha_fast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/nss/lib/freebl/sha_fast.c b/security/nss/lib/freebl/sha_fast.c index 5f9ca2a35..2debd83f7 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 |