Commits

Anonymous committed 01a580a

SHA's block size is 512 bits, not 8

Comments (0)

Files changed (1)

     "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."