diff options
Diffstat (limited to 'python3')
-rwxr-xr-x | python3/sha3sum.py | 2 |
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 |