changeset ec4b8b0e70fe in /home/hg/repos/gajim-plugins

author: Bahtiar `kalkin-` Gadimov <[email protected]>
branches: 
details:gajim-plugins?cmd=changeset;node=ec4b8b0e70fe
description: Document encryption in create_msg

diffstat:

 omemo/state.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r c29dde84bf42 -r ec4b8b0e70fe omemo/state.py
--- a/omemo/state.py    Sun Jan 10 13:42:35 2016 +0100
+++ b/omemo/state.py    Mon Jan 04 21:34:05 2016 +0100
@@ -167,10 +167,12 @@
             return
 
         my_other_devices = set(self.own_devices) - set({self.own_device_id})
+        # Encrypt the message key with for each of our own devices
         for dev in my_other_devices:
             cipher = self.get_session_cipher(from_jid, dev)
             encrypted_keys[dev] = cipher.encrypt(key).serialize()
 
+        # Encrypt the message key with for each of receivers devices
         for rid, cipher in session_ciphers.items():
             try:
                 encrypted_keys[rid] = cipher.encrypt(key).serialize()
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to