"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Tardis/Regenerator.py" between
Tardis-1.1.5.tar.gz and Tardis-1.2.1.tar.gz

About: Tardis is a system for making encrypted, incremental backups of filesystems.

Regenerator.py  (Tardis-1.1.5):Regenerator.py  (Tardis-1.2.1)
skipping to change at line 60 skipping to change at line 60
self.cacheDir = cache self.cacheDir = cache
self.db = db self.db = db
self.tempdir = tempdir self.tempdir = tempdir
self.crypt = crypt self.crypt = crypt
def decryptFile(self, filename, size, authenticate=True): def decryptFile(self, filename, size, authenticate=True):
self.logger.debug("Decrypting %s", filename) self.logger.debug("Decrypting %s", filename)
infile = self.cacheDir.open(filename, 'rb') infile = self.cacheDir.open(filename, 'rb')
# Get the IV, if it's not specified. # Get the IV, if it's not specified.
infile.seek(0, os.SEEK_SET) #infile.seek(0, os.SEEK_SET)
iv = infile.read(self.crypt.ivLength) iv = infile.read(self.crypt.ivLength)
self.logger.debug("Got IV: %d %s", len(iv), binascii.hexlify(iv)) self.logger.debug("Got IV: %d %s", len(iv), binascii.hexlify(iv))
# Create the cipher # Create the cipher
encryptor = self.crypt.getContentEncryptor(iv) encryptor = self.crypt.getContentEncryptor(iv)
outfile = tempfile.TemporaryFile() outfile = tempfile.TemporaryFile()
contentSize = size - self.crypt.ivLength - encryptor.getDigestSize() contentSize = size - self.crypt.ivLength - encryptor.getDigestSize()
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)