RadioGatun: little error
authorChristophe Oosterlynck <christophe@christophe-desktop.(none)>
Thu, 23 Oct 2008 09:30:13 +0000 (23 11:30 +0200)
committerChristophe Oosterlynck <christophe@christophe-desktop.(none)>
Thu, 23 Oct 2008 09:30:13 +0000 (23 11:30 +0200)
src/CryptoPlus/Hash/pyradiogatun.py

index a82164b..d1edf8a 100644 (file)
@@ -98,7 +98,7 @@ def Mill(a,wl):
         # Pi: Intra-word and inter-word dispersion
         for i in xrange(millSize):
                 #TODO: don't hardcode wordlength in ror64
-                a[i] = _rotateRight(A[(7*i)%millSize],i*(i+1)/2,wl*8)
+                a[i] = rotateRight(A[(7*i)%millSize],i*(i+1)/2,wl*8)
         # Theta: Diffusion
         for i in xrange(millSize):
                 A[i] = a[i] ^ a[(i+1)%millSize] ^ a[(i+4)%millSize]