1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-25 00:38:58 +00:00

Fixed typo

This commit is contained in:
Jonas Borgström 2010-11-09 20:48:20 +01:00
parent cc9e81c754
commit 9f949241b0

View file

@ -184,7 +184,7 @@ def decrypt(self, data):
if type == self.READ:
key = self._decrypt_key(data[41:297], self.rsa_read)
elif type == self.CREATE:
key = self.decrypt_key(data[41:297], self.rsa_create)
key = self._decrypt_key(data[41:297], self.rsa_create)
else:
raise Exception('Unknown pack type %d found' % ord(type))
data = AES.new(key, AES.MODE_CTR, counter=counter).decrypt(data[297:])