Author: Laurens Van Houtven <[email protected]>
Branch: 
Changeset: r68448:01a580ab4dde
Date: 2013-09-28 12:03 +0200
http://bitbucket.org/pypy/pypy/changeset/01a580ab4dde/

Log:    SHA's block size is 512 bits, not 8

diff --git a/lib_pypy/_sha.py b/lib_pypy/_sha.py
--- a/lib_pypy/_sha.py
+++ b/lib_pypy/_sha.py
@@ -118,7 +118,7 @@
     "An implementation of the SHA hash function in pure Python."
 
     digest_size = digestsize = 20
-    block_size = 1
+    block_size = 512 // 8
 
     def __init__(self):
         "Initialisation."
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to