commit 727e14b9570ce3881228503ee04ace491de62009 Merge: 67252eb db601c3 Author: Damian Johnson atagar@torproject.org Date: Wed Mar 29 21:21:02 2017 -0700
Support Ed25519 certificates
Parsing and validation of server descriptors via their ed25519 certificate. Validation requires pynacl to do the cryptographic checks (if not present they're skipped)...
https://trac.torproject.org/projects/tor/ticket/21558 https://gitweb.torproject.org/torspec.git/tree/cert-spec.txt
docs/api.rst | 1 + docs/api/descriptor/certificate.rst | 5 + docs/change_log.rst | 1 + docs/contents.rst | 1 + docs/faq.rst | 18 +- requirements.txt | 1 + run_tests.py | 1 + stem/descriptor/certificate.py | 268 ++++++++++++++++++++++ stem/descriptor/hidden_service_descriptor.py | 2 +- stem/descriptor/router_status_entry.py | 2 +- stem/descriptor/server_descriptor.py | 56 ++++- stem/prereq.py | 21 ++ stem/response/authchallenge.py | 4 +- stem/util/str_tools.py | 16 ++ stem/util/test_tools.py | 12 + test/integ/control/controller.py | 24 +- test/integ/process.py | 23 +- test/integ/util/system.py | 6 +- test/settings.cfg | 5 + test/unit/control/controller.py | 15 +- test/unit/descriptor/certificate.py | 194 ++++++++++++++++ test/unit/descriptor/extrainfo_descriptor.py | 10 +- test/unit/descriptor/microdescriptor.py | 7 +- test/unit/descriptor/networkstatus/document_v3.py | 9 +- test/unit/descriptor/server_descriptor.py | 44 +++- test/unit/manual.py | 43 ++-- test/unit/response/add_onion.py | 16 +- test/unit/util/proc.py | 9 +- test/unit/util/str_tools.py | 17 ++ test/util.py | 13 +- 30 files changed, 712 insertions(+), 132 deletions(-)