diff --git a/darc/keychain.py b/darc/keychain.py index a30d451ab..c50ca86dc 100644 --- a/darc/keychain.py +++ b/darc/keychain.py @@ -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:])