summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Even more clarifying comments.Nick Mathewson2023-02-073-8/+14
| | | | |
| * | | | netdoc: Try to add a bunch of clarifying documentation.Nick Mathewson2023-02-075-28/+87
| | | | | | | | | | | | | | | | | | | | | | | | | In the process I found a couple of keys without identifiers in the spec.
| * | | | netdoc: Use Signature::from to construct ed25519 sigs.Nick Mathewson2023-02-072-5/+10
| | | | |
| * | | | netdoc: Clear up a few typos in hsdesc comments and strings.Nick Mathewson2023-02-072-6/+6
| | | | |
| * | | | netdoc: Implement onion service descriptor parsers.Nick Mathewson2023-02-072-45/+183
| | | | |
| * | | | tor-checkable: Add dangerously_map() functions.Nick Mathewson2023-02-072-1/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These functions consume a checkable wrapper, and return a new checkable wrapper with mapped contents but the same not-yet-checked constraints. As documented, They are "dangerous" because the provided function gets access to the contents before they are checked; the caller has to make sure that the provided function doesn't expose their contents inappropriately.
| * | | | netdoc: Parse the inner layer of an onion service descriptor.Nick Mathewson2023-02-074-0/+354
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some places where I note certificates which are not currently validated, because there is no cryptographic point in doing so. We should either document that this is okay, or validate the certificates anyway. This code might benefit from refactoring to make it prettier.
| * | | | netdoc: Add a workaround for C Tor's lack of mid-layer NLNick Mathewson2023-02-072-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that C Tor doesn't add a newline at the end of the middle layer of an onion service descriptor. I've made a spec MR (torspec!109) to document this: here, it's time to work around the issue.
| * | | | netdoc: Parse the middle layer of a hsdesc, and decrypt it.Nick Mathewson2023-02-073-0/+259
| | | | |
| * | | | netdoc: Use correct size for descriptor encryption cookieNick Mathewson2023-02-071-2/+2
| | | | |
| * | | | netdoc: move test descriptor to a higher level test moduleNick Mathewson2023-02-072-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | We're going to make use of it in all of our tests, so we may as well expose it to them from hsdesc::test.
| * | | | netdoc: implement onion service descryptor encryptionNick Mathewson2023-02-074-10/+231
| | | | | | | | | | | | | | | | | | | | | | | | | This is tested via a round-trip check, and via a successful decryption of our example descriptor's outer layer.
| * | | | netdoc: Parser for outer layer of onion service descriptors.Nick Mathewson2023-02-072-0/+255
| | | | |
| * | | | netdoc: Add an example onion service descriptor to test our parsing.Nick Mathewson2023-02-071-0/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I generated this using C tor (latest main) and a Chutney network about a week ago. The subcredential is: 78210A0D2C72BB7A0CAF606BCD938B9A3696894FDDDBC3B87D424753A7E3DF37 The HS_blind_id is: 43CC0D62FC6252F578705CA645A46109E265290343B1137E90189744B20B3F2D
| * | | | netdoc: Derive Debug and Clone on HsDesc and its kin.Nick Mathewson2023-02-071-0/+3
| | | | |
| * | | | hscrypto: Impl From<Ed25519Identity> for BlindedOnionId.Nick Mathewson2023-02-071-0/+6
| | | | |
| * | | | hscrypto: add From/Into between RevisionCounter and u64.Nick Mathewson2023-02-071-1/+3
| | | | |
| * | | | tor-cert: document hs-related certificate types.Nick Mathewson2023-02-071-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | Also, explain why a few of these certificates aren't actually useful as certificates. (This issue is also documented in torspec!110)
| * | | | tor-cert: Implement Timebound for Ed25519CertNick Mathewson2023-02-072-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | This allows us to run `is_valid_at` and friends on the certificate itself, which we will use soon in hsdesc validity checks.
| * | | | llcrypto: Implement `Into<[u8;32]>` for Ed25519IdentityNick Mathewson2023-02-072-0/+7
| | | | |
| * | | | llcrypto: Derive zeroize for CtByteArray.Nick Mathewson2023-02-072-1/+3
| | | | |
* | | | | Merge branch 'warning' into 'main'Nick Mathewson2023-02-070-0/+0
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | tor-netdoc: Suppress a cfg-dependent dead code warning See merge request tpo/core/arti!998
| * | | | tor-netdoc: Suppress a cfg-dependent dead code warningIan Jackson2023-01-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is dead code when cargo +stable clippy -p tor-netdir --all-features --all-targets
* | | | | Merge branch 'linkspec' into 'main'Nick Mathewson2023-02-061-30/+16
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | tor-linkspec: LinkSpec parsing: use read_nested_u8len See merge request tpo/core/arti!1007
| * | | | tor-linkspec: LinkSpec parsing: use read_nested_u8len (fmt)Ian Jackson2023-02-061-13/+15
| | | | |
| * | | | tor-linkspec: LinkSpec parsing: use read_nested_u8lenIan Jackson2023-02-061-21/+5
|/ / / / | | | | | | | | | | | | This eliminates hardcoded length values.
* | | | Merge branch 'typed-router-index' into 'main'Ian Jackson2023-02-024-38/+74
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | tor-netdir: Use typed-index-collections for router status index See merge request tpo/core/arti!1004
| * | | | Tidy up docs about RouterStatusIdxIan Jackson2023-02-011-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always use "index" and not "position". Remove wording which is otiose given the type name.
| * | | | tor-netdir: Use typed-index-collections for router status indexIan Jackson2023-02-013-16/+37
| | | | |
| * | | | tor-netdir: Provide ConsensusRelays extension trait (fmt)Ian Jackson2023-02-011-4/+1
| | | | |
| * | | | tor-netdir: Provide ConsensusRelays extension traitIan Jackson2023-02-012-14/+35
|/ / / / | | | | | | | | | | | | | | | | Call it everywhere instead of the inherent method on MdConsensus. (Verified by ad-hoc temporarily renaming MdConsensus::relays().)
* | | | Merge branch 'misc' into 'main'Nick Mathewson2023-02-012-2/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix a couple of minor issues See merge request tpo/core/arti!1003
| * | | | tor-netdoc: Suppress a cfg-dependent dead code warningIan Jackson2023-02-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is dead code when cargo +stable clippy -p tor-netdir --all-features --all-targets
| * | | | Change two in-code references to the wrong feature nameIan Jackson2023-02-011-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/issues/756 I think this is going in the wrong direction, but it is better to fix it so that the names agree for now, pending a decision on the naming.
* | | | Merge branch 'logs' into 'main'Nick Mathewson2023-02-0122-64/+107
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report causes of errors Closes #680 See merge request tpo/core/arti!997
| * | | | Use ErrorReport - run rustfmtIan Jackson2023-01-307-10/+37
| | | | | | | | | | | | | | | | | | | | Split off for ease of review and possible rebase.
| * | | | Use ErrorReport for errors in error! in tor-ptmgrIan Jackson2023-01-301-1/+2
| | | | |
| * | | | Use ErrorReport's .report() for two errors in error! in bridgedesc.rsIan Jackson2023-01-301-3/+3
| | | | | | | | | | | | | | | | | | | | No functional change, just using the new idiom.
| * | | | Use ErrorReport for remaining errors in error! in tor-circmgrIan Jackson2023-01-301-4/+4
| | | | |
| * | | | Use ErrorReport for errors in error! in tor-chanmgrIan Jackson2023-01-301-2/+3
| | | | |
| * | | | Use tor_error::Report for remaining errors in error! in artiIan Jackson2023-01-301-1/+1
| | | | |
| * | | | Apply safelog to DNS response serialisation errors, but report themIan Jackson2023-01-301-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With safe logging disabled, print the error too. With safe logging enabled, do not print the message or the error.
| * | | | Use ErrorReport for errors in error! in arti-clientIan Jackson2023-01-302-3/+4
| | | | |
| * | | | Use ErrorReport for errors in warn! in tor-ptmgrIan Jackson2023-01-301-3/+3
| | | | |
| * | | | Use ErrorReport for errors in warn! in tor-persistIan Jackson2023-01-302-3/+5
| | | | |
| * | | | Use ErrorReport for errors in warn! in tor-dirmgrIan Jackson2023-01-303-10/+10
| | | | |
| * | | | Use ErrorReport for errors in warn! in tor-circmgrIan Jackson2023-01-303-5/+6
| | | | |
| * | | | Use ErrorReport for errors in warn! in tor-chanmgrIan Jackson2023-01-301-2/+2
| | | | |
| * | | | Use ErrorReport/Report for errors in warn! in artiIan Jackson2023-01-305-9/+13
| | | | |
| * | | | Use ErrorReport for errors in info! in tor-dirmgrIan Jackson2023-01-302-3/+4
| | | | |