+ added methods to import and select new forward secrecy keys

This commit is contained in:
Kevin Froman 2018-09-11 21:58:51 -05:00
parent d151e0d302
commit c4dcd89dfe
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
3 changed files with 22 additions and 4 deletions

View file

@ -693,7 +693,7 @@ class Core:
data = data.encode()
except AttributeError:
pass
# sign before encrypt, as unauthenticated crypto should not be a problem here
if sign:
signature = self._crypto.edSign(jsonMeta.encode() + data, key=self._crypto.privKey, encodeResult=True)
signer = self._crypto.pubKey