Removing OFB pad to avoid to hide errors
authorDaniel Garcia Moreno <danigm@wadobo.com>
Wed, 31 Jul 2013 12:07:18 +0000 (14:07 +0200)
committerDaniel Garcia Moreno <danigm@wadobo.com>
Wed, 31 Jul 2013 12:07:18 +0000 (14:07 +0200)
deltatar/aescrypto.py
testing/test_deltatar.py

index 5ae2b06..81ac1e5 100644 (file)
@@ -108,8 +108,8 @@ class AESCrypt:
         bs = self.bs
 
         # Adding pad, only needed when there's no pad, when using OFB
-        if len(buf) % bs != 0:
-            buf += self.get_pad(bs  - len(buf) % bs)
+        #if len(buf) % bs != 0:
+        #    buf += self.get_pad(bs  - len(buf) % bs)
 
         chunk = self.cipher.decrypt(buf)
         if end:
index 3dbf9a2..27b2388 100644 (file)
@@ -274,7 +274,7 @@ class DeltaTarTest(BaseTest):
         deltatar.create_full_backup(
             source_path="source_dir",
             backup_path="backup_dir",
-            max_volume_size=1)
+            max_volume_size=2)
 
         shutil.rmtree("source_dir")