[OMEMO] Error no decryption should be shown
Please first check if another issue has been opened for your problem
Versions
- OS: Archlinux
- Gajim version: gajim-git 1:r17300.24d89658f-1
- Plugin version: gajim-plugin-omemo-git omemo_2.5.8.r540.gf1b3d2ea-1
- GTK version: ? maybe
gtk3 1:3.24.18-1
- Python-nbxmpp version: python-nbxmpp-git 0.6.8.r381.ge8d421f-1
Steps to reproduce the problem
- Somebody other send to gajim a long OMEMO message from a
dino-0.1.0-3
- not working
100AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- working
95AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- not working
Expected behavior
- Show that the Message is readable ;P (sorry for this joke)
- That a warning appear, that a message was not encryptable
Actual behavior
A log message:
25/04/20 12:42:28 (E) nbxmpp.dispatcher (example.org) Handler exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 454, in dispatch
handler['func'](self._client, stanza, properties)
File "/usr/lib/python3.8/site-packages/gajim/./data/plugins/omemo/modules/omemo.py", line 218, in _message_received
plaintext, fingerprint, trust = self.backend.decrypt_message(
File "/usr/lib/python3.8/site-packages/gajim/./data/plugins/omemo/backend/state.py", line 151, in decrypt_message
result = aes_decrypt(key, omemo_message.iv, omemo_message.payload)
File "/usr/lib/python3.8/site-packages/gajim/./data/plugins/omemo/backend/aes.py", line 55, in aes_decrypt
return _decrypt(key, iv, tag, data).decode()
File "/usr/lib/python3.8/site-packages/gajim/./data/plugins/omemo/backend/aes.py", line 38, in _decrypt
return decryptor.update(data) + decryptor.finalize()
File "/usr/lib/python3.8/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 198, in finalize
data = self._ctx.finalize()
File "/usr/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 170, in finalize
raise InvalidTag
cryptography.exceptions.InvalidTag