Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M2Crypto.EVP.EVPError: wrong final block length #1120

Closed
synctext opened this issue Jan 6, 2015 · 2 comments
Closed

M2Crypto.EVP.EVPError: wrong final block length #1120

synctext opened this issue Jan 6, 2015 · 2 comments
Assignees
Milestone

Comments

@synctext
Copy link
Member

synctext commented Jan 6, 2015

Got this after running V6.4.0 for almost 3 weeks on Ubuntu.

ERROR   1419015047.58       community:617   Could not remove relay 1359238870 no activity
ERROR   1419015047.58       community:617   Could not remove relay 1023486889 no activity
ERROR   1419015057.59       community:617   Could not remove relay 2339736708 no activity
ERROR   1419015068.58       community:1046  Got destroy from {192.168.1.40:7759 62.163.91.225:7759} for circuit 2409111674
ERROR   1419015068.58       community:1052  Got an exit socket 2409111674 ('62.163.91.225', 7759)
ERROR   1419015091.53             log:443   Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/tribler/Tribler/Core/Utilities/twisted_thread.py", line 21, in _reactor_runner
    reactor.run(installSignalHandlers=False)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 797, in runUntilCurrent
    f(*a, **kw)
  File "/usr/share/tribler/Tribler/community/tunnel/community.py", line 994, in on_data
    encrypted = self.crypto_in(circuit_id, encrypted, is_data=True)
  File "/usr/share/tribler/Tribler/community/tunnel/community.py", line 1134, in crypto_in
    content = self.crypto.decrypt_str(hop.session_keys[ORIGINATOR], content)
  File "/usr/share/tribler/Tribler/community/tunnel/crypto.py", line 46, in decrypt_str
    return aes_decrypt_str(key, content)
  File "/usr/share/tribler/Tribler/community/privatesemantic/crypto/optional_crypto.py", line 70, in aes_decrypt_str
    return ret + cipher.final()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/EVP.py", line 128, in final
    return m2.cipher_final(self.ctx)
M2Crypto.EVP.EVPError: wrong final block length

Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/tribler/Tribler/Core/Utilities/twisted_thread.py", line 21, in _reactor_runner
    reactor.run(installSignalHandlers=False)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 797, in runUntilCurrent
    f(*a, **kw)
  File "/usr/share/tribler/Tribler/community/tunnel/community.py", line 994, in on_data
    encrypted = self.crypto_in(circuit_id, encrypted, is_data=True)
  File "/usr/share/tribler/Tribler/community/tunnel/community.py", line 1134, in crypto_in
    content = self.crypto.decrypt_str(hop.session_keys[ORIGINATOR], content)
  File "/usr/share/tribler/Tribler/community/tunnel/crypto.py", line 46, in decrypt_str
    return aes_decrypt_str(key, content)
  File "/usr/share/tribler/Tribler/community/privatesemantic/crypto/optional_crypto.py", line 70, in aes_decrypt_str
    return ret + cipher.final()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/EVP.py", line 128, in final
    return m2.cipher_final(self.ctx)
M2Crypto.EVP.EVPError: wrong final block length
ERROR   1419015096.74       community:1046  Got destroy from {10.0.1.115:7759 209.134.44.60:39158} for circuit 1300111165
ERROR   1419015096.74       community:1052  Got an exit socket 1300111165 ('209.134.44.60', 39158)
ERROR   1419015097.58       community:617   Could not remove relay 1537398209 no activity
ERROR   1419015097.58       community:617   Could not remove relay 3927068394 no activity
ERROR   1419015107.59       community:617   Could not remove relay 2460521578 no activity
@synctext synctext added this to the V6.4.3 milestone Jan 6, 2015
@whirm
Copy link

whirm commented Jan 14, 2015

Let's wait for the whole crypto overhaul to be finished before dealing with these bugs as they will probably not be there anymore.
Depends on #1066

@whirm whirm added the depends label Jan 14, 2015
@whirm whirm modified the milestones: V6.4.3, V6.5 anonymity: destroy message Jan 15, 2015
@whirm whirm modified the milestone: V6.5 anonymity: destroy message Jan 26, 2015
@rjruigrok
Copy link

This one too, can be closed.

@whirm whirm closed this as completed Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants