summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Bump Cargo.lock to ed25519 1.5.3 to fix CI.Nick Mathewson2023-01-161-2/+2
|/ | | | ed25519 1.5.2 has been yanked.
* Merge branch 'onion-netdir-apis' into 'main'Nick Mathewson2023-01-1111-33/+346
|\ | | | | | | | | Add onion service APIs to tor-netdir See merge request tpo/core/arti!966
| * Adjust onion service ring APIs in light of prop#342Nick Mathewson2023-01-114-38/+99
| | | | | | | | | | | | | | | | | | | | * It is the NetDir's responsibility to tell the caller what the time period is. * There can be up to two secondary time periods. * Each time period has a single SRV. * Secondary time periods only apply for onion services, when they publish. * When publishing, the correct input is a time period.
| * Sketch APIs for the onion service directory ring.Nick Mathewson2023-01-115-4/+233
| | | | | | | | | | | | | | | | | | These are a bit complex internally, but the API they present is pretty simple. I've left some discussion of points where the design isn't totally fleshed out, and where we need to look harder at the spec. Part of #716.
| * Netdoc: Refactor SharedRandVal.Nick Mathewson2023-01-113-27/+37
| | | | | | | | | | | | | | | | SharedRandVal now holds only the 32-byte random value itself; the "number of commits" field is in SharedRandStatus. This commit also makes the SharedRandVal be exactly 32 bytes, since we've set it to that value in the spec.
| * hscrypto: Add several derivesNick Mathewson2023-01-113-1/+14
| | | | | | | | | | The important addition here is the Copy derives, which affect API design. I'm applying them to the types that are 32 byte or smaller.
* | Merge branch 'onion-service-netparams' into 'main'Nick Mathewson2023-01-113-1/+167
|\ \ | |/ |/| | | | | netdir: add network parameters related to onion services See merge request tpo/core/arti!968
| * netdir: add network parameters related to onion servicesNick Mathewson2023-01-111-1/+80
| | | | | | | | | | | | | | These are available unconditionally, since they represent comparatively little storage and processing effort. See param-spec.txt section 8 for the original information here.
| * tor-units: Add an IntegerMinutes.Nick Mathewson2023-01-112-0/+87
|/
* Merge branch 'tokio-upgrade' into 'main'Ian Jackson2023-01-091-3/+3
|\ | | | | | | | | Upgrade to latest tokio, for security fix. See merge request tpo/core/arti!967
| * Upgrade to latest tokio, for security fix.Nick Mathewson2023-01-091-3/+3
| | | | | | | | | | | | | | On 1.22, cargo audit is complaining about RUSTSEC-2023-0001. We aren't affected, since we don't use windows named pipes (yet), but let's make cargo audit happier.
* | Merge branch 'blind_privkey' into 'main'Ian Jackson2023-01-092-17/+161
|\ \ | |/ |/| | | | | | | | | llcrypto: Implement secret-key blinding. Closes #719 See merge request tpo/core/arti!964
| * llcrypto: Implement secret-key blinding.Nick Mathewson2023-01-062-17/+161
| | | | | | | | | | | | | | | | Closes #719. Due to a difference between ed25519-dalek and ed25519-donna, converting these secret keys directly to public keys does not work. I've documented this in a "Limitations" section.
* | Merge branch 'typos' into 'main'eta2023-01-096-9/+9
|\ \ | | | | | | | | | | | | Fix typos See merge request tpo/core/arti!965
| * | Fix typosDimitris Apostolou2023-01-076-9/+9
| | |
* | | Merge branch 'arti-hyper-fixing-715' into 'main'eta2023-01-094-2/+36
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Temporary fix for #715 and #569 Closes #715 See merge request tpo/core/arti!958
| * | Removed unnecessary "all()" cfg constraintMichael van Straten2023-01-071-1/+1
| | |
| * | Added x86_64-apple-darwin to fallback to "tls-api-openssl"Michael van Straten2023-01-073-5/+5
| | |
| * | fixed "broken_intra_doc_link"Michael van Straten2023-01-061-2/+1
| | |
| * | Updated Cargo.lockMichael van Straten2023-01-061-0/+16
| | |
| * | Temporary fix for #715 and #569Michael van Straten2023-01-053-3/+22
| | |
* | | Merge branch 'build_profiles' into 'main'Nick Mathewson2023-01-061-0/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add a new "light" build profile between "dev" and "release". Closes #639 See merge request tpo/core/arti!960
| * | | Add a new "quicktest" build profile between "dev" and "release".Nick Mathewson2023-01-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "quicktest" is meant to build faster than our (tuned for size above all) release profile, while having enough optimization to perform reasonably well when used for testing. Closes #639.
* | | | Merge branch 'hilev_docs' into 'main'Nick Mathewson2023-01-061-6/+119
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Architecture: More high-level documentation and diagrams. Closes #624 See merge request tpo/core/arti!963
| * | | | Architecture.md: Move title outside of diagramNick Mathewson2023-01-061-3/+2
| | | | | | | | | | | | | | | | | | | | Apparently, Mermaid 9.1 did not support this.
| * | | | Architecture: More high-level documentation and diagrams.Nick Mathewson2023-01-051-6/+120
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, I'm adding a high-level MDD (simplified for clarity). I'm also adding a diagram of the object relations among our manager types. (There are also communications that happen via channels, but those aren't discussed here.) That part closes #624. There is probably more to say here, but this should form a scaffold we can build on.
* | | | Merge branch 'onion-api-v0.2' into 'main'Nick Mathewson2023-01-0622-20/+879
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Onion service APIs, part 1. See merge request tpo/core/arti!959
| * | | | Sketch a solution for arti#525Nick Mathewson2023-01-062-0/+35
| | | | |
| * | | | Sketch out new required APIs in tor-cellNick Mathewson2023-01-064-10/+130
| | | | |
| * | | | tor-cert: add a few hs TODOsNick Mathewson2023-01-061-0/+3
| | | | |
| * | | | netdoc: Outline some basic types for encoding HsDescs.Nick Mathewson2023-01-065-1/+247
| | | | |
| * | | | Add a protocol overview for onion services.Nick Mathewson2023-01-061-0/+180
| | | | |
| * | | | Create a new tor-hscrypto crate.Nick Mathewson2023-01-068-0/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module has types and operations needed in multiple places for an onion service implementation. There are a bunch of TODO hs-crypto comments that we'll need to fill in.
| * | | | netdoc: note some changes we will have to make to srvNick Mathewson2023-01-061-0/+6
| | | | |
| * | | | llcrypto: fix a comment.Nick Mathewson2023-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | This described the wrong type of key.
| * | | | llcrypto: clarify meaning of "Identity".Nick Mathewson2023-01-062-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `Ed25519Identity` and `RsaIdentity` types are not precisely always used as relay identifiers: they are more generally used as _key_ identifiers. This will become relevant as `RsaIdentity` is used for authority keys (as in authorities' VoterInfo blocks), and as `Ed25519Identity` is used as the identifier behind an onion service key.
* | | | | Merge branch 'sensitive' into 'main'Ian Jackson2023-01-066-6/+25
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | tor-proto: Remove some sensitive info from errors See merge request tpo/core/arti!934
| * | | | tor-proto: rustfmtIan Jackson2023-01-061-1/+2
| | | | | | | | | | | | | | | | | | | | Not sure why the tree didn't have this newline already. "Whatever".
| * | | | tor-proto: CreateFastWrap::decode_chanmsg: Do not report handshakeIan Jackson2023-01-062-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | The debug impl prints the handshake challenge, which we should probably treat as sensitive.
| * | | | tor-proto: impl Display for CreateResponseIan Jackson2023-01-061-0/+12
| | | | | | | | | | | | | | | | | | | | Don't print the handshake value, but do print the display reason.
| * | | | tor-proto: When relay IDs mismatch, the IDs are sensitive in errorsIan Jackson2023-01-064-3/+9
| | | | |
* | | | | Merge branch 'ptmgr-logs' into 'main'eta2023-01-064-33/+95
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | More log messages in and around the ptmgr code See merge request tpo/core/arti!923
| * | | | chanmgr: trace-level logs when launching connections.Nick Mathewson2023-01-062-0/+15
| | | | | | | | | | | | | | | | | | | | Based on more temporary debugging code. Yet another part of #677.
| * | | | ptmgr: Add more logs when looking/creating a PT.Nick Mathewson2023-01-061-24/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are also based on temporary logs that I added locally while I was hunting bugs. Also part of #677.
| * | | | ptmgr: Add more logging to IPC code.Nick Mathewson2023-01-061-9/+34
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is based on logs that I added locally while I was trying to debug some startup issues. Hopefully they'll make things easier the next time there's something to debug. Part of #677.
* | | | Merge branch 'ya-lint' into 'main'eta2023-01-061-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | tor-linkspec: Fix an unused lint See merge request tpo/core/arti!935
| * | | | tor-linkspec: Fix an unused lintIan Jackson2022-12-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise: cargo +stable clippy -p tor-proto --all-features --all-targets Produces: warning: unused import: `PtTargetAddr` --> crates/tor-linkspec/src/traits.rs:9:28 | 9 | use crate::{ChannelMethod, PtTargetAddr, RelayIdRef, RelayIdType, RelayIdTypeIter}; | ^^^^^^^^^^^^
* | | | | Merge branch 'test-lints' into 'main'eta2023-01-06132-8/+1102
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add test lint blocks to all "mod test" See merge request tpo/core/arti!937
| * | | | | test lint blocks: Add many many automaticallyIan Jackson2022-12-12120-1/+988
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
| * | | | | test lint blocks: Do some semi-manuallyIan Jackson2022-12-1210-5/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the hunks from running the rune in maint/adhoc-add-lint-blocks but which require some subsequent manual fixup: usually, deleting now-superfluous outer allows, but in some cases manually putting back lints that the adhoc script deleted.