Fix sha_fast for 64-bit solaris and 64-bit Alpha.

This commit is contained in:
nelsonb%netscape.com 2000-05-19 02:10:33 +00:00
Родитель 9dd8c20ce2
Коммит 4557e70221
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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