mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 05:53:12 +00:00
use aliases
This commit is contained in:
parent
249abbdd1f
commit
e2717245ce
@ -899,9 +899,8 @@ class Retrieve(object):
|
||||
self.log("decrypting segment %d" % self._current_segment)
|
||||
started = time.time()
|
||||
key = hashutil.ssk_readkey_data_hash(salt, self._node.get_readkey())
|
||||
# XXX make aes.* functions for decryption too .. even though its the same
|
||||
decryptor = aes.create_encryptor(key)
|
||||
plaintext = aes.encrypt_data(decryptor, segment)
|
||||
decryptor = aes.create_decryptor(key)
|
||||
plaintext = aes.decrypt_data(decryptor, segment)
|
||||
self._status.accumulate_decrypt_time(time.time() - started)
|
||||
return plaintext
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user