Fix PPC SHA1 routine for large input buffers
commitb47f509ba59df5bd9a780745ca710272c6dd175b
authorPaul Mackerras <paulus@samba.org>
Sun, 18 Jun 2006 23:25:16 +0000 (19 09:25 +1000)
committerJunio C Hamano <junkio@cox.net>
Mon, 19 Jun 2006 03:12:20 +0000 (18 20:12 -0700)
treeadc485fcd2024dcdb0b7043f26d845b98cfed4e1
parent476a4dfc05f8d67406af277a00f7079b5d6d51e1
Fix PPC SHA1 routine for large input buffers

The PPC SHA1 routine had an overflow which meant that it gave
incorrect results for input buffers >= 512MB.  This fixes it by
ensuring that the update of the total length in bits is done using
64-bit arithmetic.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
ppc/sha1.c