mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
rename
This commit is contained in:
parent
0ab149248b
commit
ec02d47bcc
@ -165,8 +165,8 @@ class MutableFileNode(object):
|
|||||||
return crypttext
|
return crypttext
|
||||||
|
|
||||||
def _decrypt_privkey(self, enc_privkey):
|
def _decrypt_privkey(self, enc_privkey):
|
||||||
encryptor = aes.create_encryptor(self._writekey)
|
decryptor = aes.create_decryptor(self._writekey)
|
||||||
privkey = aes.encrypt_data(encryptor, enc_privkey)
|
privkey = aes.decrypt_data(decryptor, enc_privkey)
|
||||||
return privkey
|
return privkey
|
||||||
|
|
||||||
def _populate_pubkey(self, pubkey):
|
def _populate_pubkey(self, pubkey):
|
||||||
|
Loading…
Reference in New Issue
Block a user