[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #8755 [Stem]: Digest validation fails with python 3
#8755: Digest validation fails with python 3
------------------------+---------------------------------------------------
Reporter: aj00200 | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: controller | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Changes (by atagar):
* status: needs_information => new
Comment:
Baka! I was confusing pycrypto and python-crypto. Issue reproed...
{{{
>>> from stem.control import Controller
>>> control = Controller.from_port(port = 9051)
>>> control.authenticate()
>>> desc =
control.get_server_descriptor('0B9821545C48E496AEED9ECC0DB506C49FF8158D')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "stem/control.py", line 1107, in get_server_descriptor
raise exc
File "stem/control.py", line 1104, in get_server_descriptor
return
stem.descriptor.server_descriptor.RelayDescriptor(str_tools._to_bytes(desc_content))
File "stem/descriptor/server_descriptor.py", line 646, in __init__
self._validate_content()
File "stem/descriptor/server_descriptor.py", line 697, in
_validate_content
self._verify_digest(key_as_bytes)
File "stem/descriptor/server_descriptor.py", line 765, in _verify_digest
raise ValueError("Decrypted digest does not match local digest
(calculated: %s, local: %s)" % (digest, local_digest))
ValueError: Decrypted digest does not match local digest (calculated:
F0CE398F63E2A1A2B391DD92D3859C70C5AFB21E, local:
5A0D6EE34269CBDD0034758BC67F2C40144B5CE4)
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8755#comment:12>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs