From edd3e950fed9d7cc766428e45d52c7a34ce682ca Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 Feb 2013 08:10:23 +0100 Subject: optimise c version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python3/sha3sum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python3/sha3sum.py') 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 -- cgit v1.2.3-70-g09d2