its decryption not encryption

This commit is contained in:
meejah 2019-07-08 13:59:59 -06:00
parent 3730f1f01b
commit a4ed8f6372

View File

@ -189,12 +189,12 @@ class AssistedUpload(unittest.TestCase):
key = hashutil.convergence_hash(k, n, segsize, DATA, "test convergence string")
assert len(key) == 16
decryptor = aes.create_decryptor(key)
encryptor = aes.create_encryptor(key)
SI = hashutil.storage_index_hash(key)
SI_s = si_b2a(SI)
encfile = os.path.join(self.basedir, "CHK_encoding", SI_s)
f = open(encfile, "wb")
f.write(aes.decrypt_data(decryptor, DATA))
f.write(aes.encrypt_data(encryptor, DATA))
f.close()
u = upload.Uploader(self.helper_furl)