I've tried to edit the code, changing the key size and the size of the sent data, but the error remains. Here is my error:Įrror: Ciphertext length must be equal to key size. I've got STL/TLS to work, and now I'm working on end-to-end encryption. I'm trying to make an end-to-end encrypted messenger in Python.