poljar / weechat-matrix

Weechat Matrix protocol script written in python
Other
957 stars 119 forks source link

Can't decrypt certain attachments #275

Closed wavexx closed 3 years ago

wavexx commented 3 years ago

I'm increasingly finding attachments sent to me (or by me using other clients) over E2E channels that cannot be decrypted properly using matrix_decrypt.py.

The decrypted content is garbage, yet the hash matches and key/iv seems to be of the correct length too (no error is given by the basic sanity checks we already have in place).

I wouldn't know where to start looking. I've seen the decryption itself is done in matrix-nio, but I also receive attachments I can decrypt normally which makes me think the decryption part should be fine.

Could the url printed in weechat be modified for some unknown reason?

wavexx commented 3 years ago

Closing in favor of the above PR.