Anonymous avatar Anonymous committed 1799bb7

Fixed missing EOL.

Comments (0)

Files changed (5)

tlslite/utils/AES.py

     #CBC-Mode decryption, returns plaintext
     #WARNING: *MAY* modify the input as well
     def decrypt(self, ciphertext):
-        assert(len(ciphertext) % 16 == 0)
+        assert(len(ciphertext) % 16 == 0)

tlslite/utils/Cryptlib_RC4.py

             return bytesToString(bytes)
 
         def decrypt(self, ciphertext):
-            return self.encrypt(ciphertext)
+            return self.encrypt(ciphertext)

tlslite/utils/Cryptlib_TripleDES.py

             TripleDES.decrypt(self, ciphertext)
             bytes = stringToBytes(ciphertext)
             cryptlib_py.cryptDecrypt(self.context, bytes)
-            return bytesToString(bytes)
+            return bytesToString(bytes)

tlslite/utils/cipherfactory.py

             return OpenSSL_TripleDES.new(key, 2, IV)
         elif impl == "pycrypto" and cryptomath.pycryptoLoaded:
             return PyCrypto_TripleDES.new(key, 2, IV)
-    raise NotImplementedError()
+    raise NotImplementedError()

tlslite/utils/codec.py

         elif (self.index - self.indexCheck) == self.lengthCheck:
             return True
         else:
-            raise SyntaxError()
+            raise SyntaxError()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.