| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | | | | Remove a needless line. | Nick Mathewson | 2023-02-07 | 1 | -1/+0 | |
| | | | | | | ||||||
| | * | | | | Even more clarifying comments. | Nick Mathewson | 2023-02-07 | 3 | -8/+14 | |
| | | | | | | ||||||
| | * | | | | netdoc: Try to add a bunch of clarifying documentation. | Nick Mathewson | 2023-02-07 | 5 | -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 Mathewson | 2023-02-07 | 2 | -5/+10 | |
| | | | | | | ||||||
| | * | | | | netdoc: Clear up a few typos in hsdesc comments and strings. | Nick Mathewson | 2023-02-07 | 2 | -6/+6 | |
| | | | | | | ||||||
| | * | | | | netdoc: Implement onion service descriptor parsers. | Nick Mathewson | 2023-02-07 | 2 | -45/+183 | |
| | | | | | | ||||||
| | * | | | | tor-checkable: Add dangerously_map() functions. | Nick Mathewson | 2023-02-07 | 2 | -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 Mathewson | 2023-02-07 | 4 | -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 NL | Nick Mathewson | 2023-02-07 | 2 | -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 Mathewson | 2023-02-07 | 3 | -0/+259 | |
| | | | | | | ||||||
| | * | | | | netdoc: Use correct size for descriptor encryption cookie | Nick Mathewson | 2023-02-07 | 1 | -2/+2 | |
| | | | | | | ||||||
| | * | | | | netdoc: move test descriptor to a higher level test module | Nick Mathewson | 2023-02-07 | 2 | -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 encryption | Nick Mathewson | 2023-02-07 | 4 | -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 Mathewson | 2023-02-07 | 2 | -0/+255 | |
| | | | | | | ||||||
| | * | | | | netdoc: Add an example onion service descriptor to test our parsing. | Nick Mathewson | 2023-02-07 | 1 | -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 Mathewson | 2023-02-07 | 1 | -0/+3 | |
| | | | | | | ||||||
| | * | | | | hscrypto: Impl From<Ed25519Identity> for BlindedOnionId. | Nick Mathewson | 2023-02-07 | 1 | -0/+6 | |
| | | | | | | ||||||
| | * | | | | hscrypto: add From/Into between RevisionCounter and u64. | Nick Mathewson | 2023-02-07 | 1 | -1/+3 | |
| | | | | | | ||||||
| | * | | | | tor-cert: document hs-related certificate types. | Nick Mathewson | 2023-02-07 | 1 | -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 Ed25519Cert | Nick Mathewson | 2023-02-07 | 2 | -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 Ed25519Identity | Nick Mathewson | 2023-02-07 | 2 | -0/+7 | |
| | | | | | | ||||||
| | * | | | | llcrypto: Derive zeroize for CtByteArray. | Nick Mathewson | 2023-02-07 | 2 | -1/+3 | |
| | | | | | | ||||||
| * | | | | | Merge branch 'warning' into 'main' | Nick Mathewson | 2023-02-07 | 0 | -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 warning | Ian Jackson | 2023-01-31 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is dead code when cargo +stable clippy -p tor-netdir --all-features --all-targets | |||||
| * | | | | | Merge branch 'linkspec' into 'main' | Nick Mathewson | 2023-02-06 | 1 | -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 Jackson | 2023-02-06 | 1 | -13/+15 | |
| | | | | | | ||||||
| | * | | | | tor-linkspec: LinkSpec parsing: use read_nested_u8len | Ian Jackson | 2023-02-06 | 1 | -21/+5 | |
| |/ / / / | | | | | | | | | | | | | This eliminates hardcoded length values. | |||||
| * | | | | Merge branch 'typed-router-index' into 'main' | Ian Jackson | 2023-02-02 | 4 | -38/+74 | |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | tor-netdir: Use typed-index-collections for router status index See merge request tpo/core/arti!1004 | |||||
| | * | | | | Tidy up docs about RouterStatusIdx | Ian Jackson | 2023-02-01 | 1 | -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 index | Ian Jackson | 2023-02-01 | 3 | -16/+37 | |
| | | | | | | ||||||
| | * | | | | tor-netdir: Provide ConsensusRelays extension trait (fmt) | Ian Jackson | 2023-02-01 | 1 | -4/+1 | |
| | | | | | | ||||||
| | * | | | | tor-netdir: Provide ConsensusRelays extension trait | Ian Jackson | 2023-02-01 | 2 | -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 Mathewson | 2023-02-01 | 2 | -2/+3 | |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | Fix a couple of minor issues See merge request tpo/core/arti!1003 | |||||
| | * | | | | tor-netdoc: Suppress a cfg-dependent dead code warning | Ian Jackson | 2023-02-01 | 1 | -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 name | Ian Jackson | 2023-02-01 | 1 | -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 Mathewson | 2023-02-01 | 22 | -64/+107 | |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report causes of errors Closes #680 See merge request tpo/core/arti!997 | |||||
| | * | | | | Use ErrorReport - run rustfmt | Ian Jackson | 2023-01-30 | 7 | -10/+37 | |
| | | | | | | | | | | | | | | | | | | | | | Split off for ease of review and possible rebase. | |||||
| | * | | | | Use ErrorReport for errors in error! in tor-ptmgr | Ian Jackson | 2023-01-30 | 1 | -1/+2 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport's .report() for two errors in error! in bridgedesc.rs | Ian Jackson | 2023-01-30 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | | | | | | No functional change, just using the new idiom. | |||||
| | * | | | | Use ErrorReport for remaining errors in error! in tor-circmgr | Ian Jackson | 2023-01-30 | 1 | -4/+4 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport for errors in error! in tor-chanmgr | Ian Jackson | 2023-01-30 | 1 | -2/+3 | |
| | | | | | | ||||||
| | * | | | | Use tor_error::Report for remaining errors in error! in arti | Ian Jackson | 2023-01-30 | 1 | -1/+1 | |
| | | | | | | ||||||
| | * | | | | Apply safelog to DNS response serialisation errors, but report them | Ian Jackson | 2023-01-30 | 1 | -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-client | Ian Jackson | 2023-01-30 | 2 | -3/+4 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport for errors in warn! in tor-ptmgr | Ian Jackson | 2023-01-30 | 1 | -3/+3 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport for errors in warn! in tor-persist | Ian Jackson | 2023-01-30 | 2 | -3/+5 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport for errors in warn! in tor-dirmgr | Ian Jackson | 2023-01-30 | 3 | -10/+10 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport for errors in warn! in tor-circmgr | Ian Jackson | 2023-01-30 | 3 | -5/+6 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport for errors in warn! in tor-chanmgr | Ian Jackson | 2023-01-30 | 1 | -2/+2 | |
| | | | | | | ||||||
| | * | | | | Use ErrorReport/Report for errors in warn! in arti | Ian Jackson | 2023-01-30 | 5 | -9/+13 | |
| | | | | | | ||||||
