aboutsummaryrefslogtreecommitdiffstats
path: root/python3/sha3sum.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-02-08 08:10:23 +0100
committerMattias Andrée <maandree@operamail.com>2013-02-08 08:10:23 +0100
commitedd3e950fed9d7cc766428e45d52c7a34ce682ca (patch)
tree02095013d9bde2e4b3b01f4f3264c5c9970a1c28 /python3/sha3sum.py
parentcorrected (diff)
downloadsha3sum-edd3e950fed9d7cc766428e45d52c7a34ce682ca.tar.gz
sha3sum-edd3e950fed9d7cc766428e45d52c7a34ce682ca.tar.bz2
sha3sum-edd3e950fed9d7cc766428e45d52c7a34ce682ca.tar.xz
optimise c version
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'python3/sha3sum.py')
-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