]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/gost3412.py
PEP8 and Pylint related fixes
[pygost.git] / pygost / gost3412.py
index ba204a0a1e24fa2d744e941b6fe1268193526c09..70c1c900b87a9ca8a5114bacee44cb146711f408 100644 (file)
@@ -24,7 +24,7 @@ Several precalculations are performed during this module importing.
 """
 
 from pygost.utils import strxor
-from pygost.utils import xrange
+from pygost.utils import xrange  # pylint: disable=redefined-builtin
 
 
 LC = bytearray((
@@ -75,7 +75,10 @@ def gf(a, b):
 # optimization.
 # Actually it can be computed only once and saved on the disk.
 ########################################################################
+
+
 GF = [bytearray(256) for _ in xrange(256)]
+
 for x in xrange(256):
     for y in xrange(256):
         GF[x][y] = gf(x, y)
@@ -104,7 +107,10 @@ def Linv(blk):
 # Precalculate values of the C -- it does not depend on key.
 # Actually it can be computed only once and saved on the disk.
 ########################################################################
+
+
 C = []
+
 for x in range(1, 33):
     y = bytearray(16)
     y[15] = x