mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
parent
2cbadc88ab
commit
7046fdcdc8
@ -118,13 +118,13 @@ class SHA1Hash:
|
||||
c,
|
||||
d,
|
||||
)
|
||||
self.h = (
|
||||
self.h[0] + a & 0xFFFFFFFF,
|
||||
self.h[1] + b & 0xFFFFFFFF,
|
||||
self.h[2] + c & 0xFFFFFFFF,
|
||||
self.h[3] + d & 0xFFFFFFFF,
|
||||
self.h[4] + e & 0xFFFFFFFF,
|
||||
)
|
||||
self.h = (
|
||||
self.h[0] + a & 0xFFFFFFFF,
|
||||
self.h[1] + b & 0xFFFFFFFF,
|
||||
self.h[2] + c & 0xFFFFFFFF,
|
||||
self.h[3] + d & 0xFFFFFFFF,
|
||||
self.h[4] + e & 0xFFFFFFFF,
|
||||
)
|
||||
return "%08x%08x%08x%08x%08x" % tuple(self.h)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user