From 14e661a79c040174d0560efeb27290aadce06a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Thu, 6 Apr 2017 17:45:26 +0200 Subject: [PATCH] [omemo] Add auth tag to key instead of payload --- omemo/omemo/state.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/omemo/omemo/state.py b/omemo/omemo/state.py index 2a899d1..49dd7cd 100644 --- a/omemo/omemo/state.py +++ b/omemo/omemo/state.py @@ -228,9 +228,7 @@ class OmemoState: payload, tag = encrypt(key, iv, plaintext) - # for XEP-384 Compliance uncomment - # key += tag - payload += tag + key += tag # Encrypt the message key with for each of receivers devices for device in devices_list: @@ -289,9 +287,7 @@ class OmemoState: payload, tag = encrypt(key, iv, plaintext) - # for XEP-384 Compliance uncomment - # key += tag - payload += tag + key += tag for tup in devices_list: self.get_session_cipher(tup[0], tup[1])