From b899baabd875e465d364b882fc7d19a484a21a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 18 Mar 2022 18:37:37 +0100 Subject: xep_0454: also include finalize's result in the payload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp/plugins/xep_0454/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slixmpp/plugins/xep_0454/__init__.py b/slixmpp/plugins/xep_0454/__init__.py index 63a34710..99e9ff5f 100644 --- a/slixmpp/plugins/xep_0454/__init__.py +++ b/slixmpp/plugins/xep_0454/__init__.py @@ -67,8 +67,7 @@ class XEP_0454(BasePlugin): break payload += aes_gcm.update(buf) - aes_gcm.finalize() - payload += aes_gcm.tag + payload += aes_gcm.finalize() + aes_gcm.tag fragment = aes_gcm_iv.hex() + aes_gcm_key.hex() return (payload, fragment) -- cgit v1.2.3