aboutsummaryrefslogtreecommitdiffstats
path: root/python3
diff options
context:
space:
mode:
Diffstat (limited to 'python3')
-rwxr-xr-xpython3/sha3sum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3/sha3sum.py b/python3/sha3sum.py
index 613b697..337e5c1 100755
--- a/python3/sha3sum.py
+++ b/python3/sha3sum.py
@@ -98,7 +98,7 @@ class SHA3:
@param n:int Rotation steps
@return :int The value rotated
'''
- return ((x >> (SHA3.w - n)) + (x << n)) & 0xFFFFFFFFFFFFFFFF
+ return ((x >> (64 - n)) + (x << n)) & 0xFFFFFFFFFFFFFFFF
@staticmethod