From: Daniel Garcia Moreno Date: Wed, 31 Jul 2013 12:07:18 +0000 (+0200) Subject: Removing OFB pad to avoid to hide errors X-Git-Tag: v2.2~135 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=8390c925d5069d933ec3081a85b028dfc619ed7a;p=python-delta-tar Removing OFB pad to avoid to hide errors --- diff --git a/deltatar/aescrypto.py b/deltatar/aescrypto.py index 5ae2b06..81ac1e5 100644 --- a/deltatar/aescrypto.py +++ b/deltatar/aescrypto.py @@ -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: diff --git a/testing/test_deltatar.py b/testing/test_deltatar.py index 3dbf9a2..27b2388 100644 --- a/testing/test_deltatar.py +++ b/testing/test_deltatar.py @@ -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")