mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 11:16:41 +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)
|
self.log("decrypting segment %d" % self._current_segment)
|
||||||
started = time.time()
|
started = time.time()
|
||||||
key = hashutil.ssk_readkey_data_hash(salt, self._node.get_readkey())
|
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_decryptor(key)
|
||||||
decryptor = aes.create_encryptor(key)
|
plaintext = aes.decrypt_data(decryptor, segment)
|
||||||
plaintext = aes.encrypt_data(decryptor, segment)
|
|
||||||
self._status.accumulate_decrypt_time(time.time() - started)
|
self._status.accumulate_decrypt_time(time.time() - started)
|
||||||
return plaintext
|
return plaintext
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user