summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-03-18 18:37:37 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-03-19 10:31:34 +0100
commitb899baabd875e465d364b882fc7d19a484a21a37 (patch)
tree394da42838d4dd61c28ed1f1a878cda1646da95f
parentacad41f3b73d13e8e9abe5578aceacaded117cd0 (diff)
downloadslixmpp-b899baabd875e465d364b882fc7d19a484a21a37.tar.gz
slixmpp-b899baabd875e465d364b882fc7d19a484a21a37.tar.bz2
slixmpp-b899baabd875e465d364b882fc7d19a484a21a37.tar.xz
slixmpp-b899baabd875e465d364b882fc7d19a484a21a37.zip
xep_0454: also include finalize's result in the payload
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--slixmpp/plugins/xep_0454/__init__.py3
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)