Utilities/crypto/py3AES.py

changeset 3034
7ce719013078
parent 3019
7912530a33e2
child 3039
8dd0165d805d
--- a/Utilities/crypto/py3AES.py	Sat Oct 19 12:28:12 2013 +0200
+++ b/Utilities/crypto/py3AES.py	Sat Oct 19 13:03:39 2013 +0200
@@ -662,7 +662,7 @@
             for j in range(int(math.ceil(float(len(input)) / 16))):
                 start = j * 16
                 end = j * 16 + 16
-                if  end > len(input):
+                if end > len(input):
                     end = len(input)
                 plaintext = self.__extractBytes(input, start, end, mode)
                 # print 'PT@%s:%s' % (j, plaintext)
@@ -751,7 +751,7 @@
         bytesOut = bytearray()
         # char firstRound
         firstRound = True
-        if cipherIn != None:
+        if cipherIn is not None:
             for j in range(int(math.ceil(float(len(cipherIn)) / 16))):
                 start = j * 16
                 end = j * 16 + 16

eric ide

mercurial