/* -*-c-*-
*
- * $Id: sha.c,v 1.2 1999/12/10 23:20:03 mdw Exp $
+ * $Id: sha.c,v 1.4 2004/04/08 01:36:15 mdw Exp $
*
* Implementation of the SHA-1 hash function
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sha.c,v $
- * Revision 1.2 1999/12/10 23:20:03 mdw
- * New hash interface requirements.
- *
- * Revision 1.1 1999/09/03 08:41:12 mdw
- * Initial import.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <mLib/bits.h>
ctx->e = LOAD32(p + 16);
ctx->off = 0;
ctx->nl = U32(count);
- ctx->nh = U32((count >> 16) >> 16);
+ ctx->nh = U32(((count & ~MASK32) >> 16) >> 16);
}
/* --- @sha_hash@ --- *