diff options
-rw-r--r-- | slixmpp/plugins/xep_0454/__init__.py | 3 |
1 files changed, 1 insertions, 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) |