projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark dependency on mLib 2.0.0pre4 now.
[u/mdw/catacomb]
/
rmd160.c
diff --git
a/rmd160.c
b/rmd160.c
index
60b67a7
..
3d56e0d
100644
(file)
--- a/
rmd160.c
+++ b/
rmd160.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: rmd160.c,v 1.
2 1999/12/10 23:20:0
3 mdw Exp $
+ * $Id: rmd160.c,v 1.
3 2000/06/17 11:31:4
3 mdw Exp $
*
* The RIPEMD-160 message digest function
*
*
* The RIPEMD-160 message digest function
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: rmd160.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: rmd160.c,v $
+ * Revision 1.3 2000/06/17 11:31:43 mdw
+ * Portability fix for broken compilers.
+ *
* Revision 1.2 1999/12/10 23:20:03 mdw
* New hash interface requirements.
*
* Revision 1.2 1999/12/10 23:20:03 mdw
* New hash interface requirements.
*
@@
-338,7
+341,7
@@
void rmd160_set(rmd160_ctx *ctx, const void *buf, unsigned long count)
ctx->e = LOAD32_L(p + 16);
ctx->off = 0;
ctx->nl = U32(count);
ctx->e = LOAD32_L(p + 16);
ctx->off = 0;
ctx->nl = U32(count);
- ctx->nh = U32((
count
>> 16) >> 16);
+ ctx->nh = U32((
(count & ~MASK32)
>> 16) >> 16);
}
/* --- @rmd160_hash@ --- *
}
/* --- @rmd160_hash@ --- *