summaryrefslogtreecommitdiff
path: root/ppc/sha1.c
AgeCommit message (Collapse)AuthorFilesLines
2006-06-18Fix PPC SHA1 routine for large input buffersLibravatar Paul Mackerras1-1/+1
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>
2005-04-22[PATCH] PPC assembly implementation of SHA1Libravatar Paul Mackerras1-0/+72
Here is a SHA1 implementation with the core written in PPC assembly. On my 2GHz G5, it does 218MB/s, compared to 135MB/s for the openssl version or 45MB/s for the mozilla version. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>