From: Daniel Garcia Moreno Date: Thu, 1 Aug 2013 08:58:23 +0000 (+0200) Subject: Fixing AESCrypt stupid bug X-Git-Tag: v2.2~131 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=285faea35bf52eb5baceb4515a96dc138d0e0ffd;p=python-delta-tar Fixing AESCrypt stupid bug --- diff --git a/deltatar/aescrypto.py b/deltatar/aescrypto.py index 81ac1e5..4e2f4e3 100644 --- a/deltatar/aescrypto.py +++ b/deltatar/aescrypto.py @@ -86,8 +86,9 @@ class AESCrypt: self.buf += chunk if len(self.buf) % self.bs == 0: + cipher = self.cipher.encrypt(self.buf) self.buf = '' - return self.cipher.encrypt(self.buf) + return cipher cipher = '' while len(self.buf) >= self.bs: