| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | tor-proto: Rename MutableState to CircuitState. | Gabriela Moldovan | 2025-05-15 | 3 | -9/+9 | |
| | | | | | | | This renaming is in preparation for the addition of a newtype wrapper for what used to be `Mutex<MutableState>`. That newtype wrapper will be called `MutableState`. | |||||
| * | tor-proto: Make the MutableState internals private. | Gabriela Moldovan | 2025-05-15 | 2 | -5/+18 | |
| | | ||||||
| * | tor-proto: Remove deprecated ClientCirc functions. | Gabriela Moldovan | 2025-05-15 | 2 | -48/+13 | |
| | | | | | | | These functions have been deprecated for a while, and are now complicating the `MutableState` changes we need to do for #1840, so it seems like a good time to remove them. | |||||
| * | Merge branch 'proto-change-bench-neasurement' into 'main' | Nick Mathewson | 2025-05-14 | 13 | -199/+102 | |
| |\ | | | | | | | | | tor-proto: change bench measurement See merge request tpo/core/arti!2998 | |||||
| | * | proto: use consts for bench throuputs | Lionel Goffaux | 2025-05-14 | 10 | -16/+25 | |
| | | | ||||||
| | * | proto: fix doc mismatch in benchmarks | Lionel Goffaux | 2025-05-14 | 2 | -2/+2 | |
| | | | ||||||
| | * | proto: fix doc typos | Lionel Goffaux | 2025-05-14 | 9 | -11/+11 | |
| | | | ||||||
| | * | proto: change bench measurement | Lionel Goffaux | 2025-05-13 | 10 | -190/+84 | |
| | | | ||||||
| * | | All crates: bump rust-version to 1.83. | Nick Mathewson | 2025-05-13 | 1 | -1/+1 | |
| |/ | ||||||
| * | proto: use of Aes{128,256}{Dec,Enc} in the benchmarks | Lionel Goffaux | 2025-05-08 | 6 | -24/+24 | |
| | | ||||||
| * | proto: fix name mismatch in the bench utils doc | Lionel Goffaux | 2025-05-08 | 3 | -10/+10 | |
| | | ||||||
| * | proto: fix typo s(t)ate | Lionel Goffaux | 2025-05-08 | 6 | -15/+15 | |
| | | ||||||
| * | proto: extend benchmarks | Lionel Goffaux | 2025-05-08 | 16 | -338/+994 | |
| | | ||||||
| * | Use simpler way to refer to last byte of tag. | Nick Mathewson | 2025-05-07 | 1 | -1/+1 | |
| | | ||||||
| * | proto: Update CGO test vectors | Nick Mathewson | 2025-05-07 | 4 | -149/+146 | |
| | | | | | | These were generated with an updated version of the python reference implementation. | |||||
| * | proto: Clear low 6 bits of counter in CGO PRF. | Nick Mathewson | 2025-05-07 | 1 | -3/+4 | |
| | | | | | See torspec#332. | |||||
| * | cell,proto: Split request/response extensions into seprate types | Nick Mathewson | 2025-05-07 | 3 | -15/+14 | |
| | | | | | Implements part of proposal 358. | |||||
| * | cell: Use ExtList to implement CircRequestExt. | Nick Mathewson | 2025-05-07 | 5 | -17/+20 | |
| | | | | | This required some renaming, so that the types and their codes matched. | |||||
| * | Rename NtorV3Extension to CircRequestExt | Nick Mathewson | 2025-05-07 | 5 | -27/+28 | |
| | | | | | | | | This type will, because of prop358, be shared by ntorv3, hs-ntor, and probably other future handshakes. There will also be a CircResponseExt type. | |||||
| * | tor_proto: name fields in bench_utils. | Nick Mathewson | 2025-05-06 | 1 | -7/+10 | |
| | | ||||||
| * | proto: Apply type-specific wrappers for tor1 crypto | Nick Mathewson | 2025-05-06 | 6 | -79/+143 | |
| | | | | | | | | | | | | | | Now instead of using CryptState for everything, we have specific types for each role and direction of crypto. This turned up a harmless-so-far bug in our onion service code: as an onion service, we were using _client_ crypto layers to respond to a client request. That's not correct, and wouldn't have worked with CGO. Instead, we need to use relay crypto layers, wrapped as client layers. Closes #1975. | |||||
| * | proto, cell: Remove RelayCellFormatTrait. | Nick Mathewson | 2025-05-06 | 9 | -197/+119 | |
| | | | | | | | | | | | | | | | | | The purpose of the trait was to parameterize the tor1 cell crypto on the different possible relay cell layouts. It made sense to have this trait when we thought we would implement the new cell layout for prop340 (packed-and-fragmented) well before we implemented CGO. But it now appears all but certain that CGO will land long before we make any more headway on prop340. Therefore, it doesn't make sense to carry the ability to customize `tor1` for other relay cell layouts. Removing this trait saves a fair bit of complexity. | |||||
| * | tor-proto: Rename some no-longer-apt tor1 members. | Nick Mathewson | 2025-05-06 | 1 | -14/+13 | |
| | | ||||||
| * | tor-proto: remove some now-unneeded accessors. | Nick Mathewson | 2025-05-06 | 1 | -35/+15 | |
| | | ||||||
| * | Emit SendmeTag directly from cell crypto. | Nick Mathewson | 2025-05-06 | 7 | -100/+90 | |
| | | | | | | | | | | | | | | | | | | | | | This changes the code to copy a SendmeTag rather than returning a slice. This isn't actually a big change: sending a slice already required 16 bytes (on 64-bit platforms), so sending a SendmeTag around isn't a big deal. We rely extensively on the compiler's ability to optimize away all the checking in code like this: ``` let slice: &[u8]; let a: [u8;N] = slice[0..N].try_into().expect("Nope"); ``` I've spot-checked it somewhat with "cargo-show-asm", but it could use more thorough checking. Closes #1956. | |||||
| * | Remove the last traces of CircTag. | Nick Mathewson | 2025-05-06 | 5 | -21/+19 | |
| | | ||||||
| * | proto: Use SendmeTag in place of CircTag | Nick Mathewson | 2025-05-06 | 2 | -54/+9 | |
| | | | | | | This doesn't make much change yet, but does save us an allocation when handling SENDMEs. | |||||
| * | proto: Split out CGO BlkCipher trait for Encryption/Decryption | Nick Mathewson | 2025-05-06 | 2 | -57/+172 | |
| | | | | | | | This lets us use `Aes128Dec` and `Aes128Enc` in place of plain old `Aes128`, which can be less space-efficient depending on the back-end. | |||||
| * | Merge branch 'clientcirc_extend' into 'main' | Nick Mathewson | 2025-05-06 | 1 | -6/+59 | |
| |\ | | | | | | | | | | | | | tor-proto: New extend() and create_firsthop() to pick between ntor and ntor3 Closes #1970 See merge request tpo/core/arti!2967 | |||||
| | * | proto: Fix documentation to avoid recommending ntor methods | Nick Mathewson | 2025-04-28 | 1 | -6/+8 | |
| | | | | | | | | | | | | | Since we have create_firsthop() and extend(), we should recommend them in our documentation, instead of recommending the no-longer-best methods. | |||||
| | * | proto: Provide and use a create_firsthop() wrapper too. | Nick Mathewson | 2025-04-28 | 1 | -0/+23 | |
| | | | ||||||
| | * | tor-proto: New extend() to pick between ntor and ntor3 | Nick Mathewson | 2025-04-28 | 1 | -0/+28 | |
| | | | | | | | | | | | | | | | | | | | In the future, when we add more circuit handshakes (PQ anyone?) we'll want to have the logic for choosing which to use be unified. Almost nobody calling tor-proto should need to care which circuit handshake is going to be used. Closes #1970. | |||||
| * | | tor-proto: Use AcqRel instead of SeqCst to clarify intent. | Gabriela Moldovan | 2025-05-06 | 2 | -3/+3 | |
| | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2946#note_3192334 | |||||
| * | | tor-proto: Document the lifecycle of a ConfluxSet. | Gabriela Moldovan | 2025-05-06 | 1 | -1/+28 | |
| | | | ||||||
| * | | tor-proto: Document why RemoveLegReason exists. | Gabriela Moldovan | 2025-05-06 | 1 | -0/+14 | |
| | | | ||||||
| * | | tor-proto: Move error binding under is_conflux_pending condition. | Gabriela Moldovan | 2025-05-06 | 1 | -7/+6 | |
| | | | | | | | | | We don't use it outside this branch, so might as well move it there. | |||||
| * | | tor-proto: Remove already-addressed TODO. | Gabriela Moldovan | 2025-05-06 | 1 | -2/+0 | |
| | | | | | | | | | We already do this, using `note_conflux_handshake_result`. | |||||
| * | | tor-proto: Explain why the handshake result is noted before the LINKED_ACK. | Gabriela Moldovan | 2025-05-06 | 1 | -1/+10 | |
| | | | ||||||
| * | | tor-proto: Remove confusing parts of join_point docs. | Gabriela Moldovan | 2025-05-06 | 1 | -4/+1 | |
| | | | ||||||
| * | | tor-proto: Future-proof the unsupported_client_cell macro. | Gabriela Moldovan | 2025-05-06 | 1 | -1/+2 | |
| | | | | | | | | | | | Prompted by opara's suggestion in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2946#note_3192319 | |||||
| * | | tor-proto: Clarify why ConfluxHandshakeComplete exists. | Gabriela Moldovan | 2025-05-06 | 1 | -0/+8 | |
| | | | ||||||
| * | | tor-proto: s/ConfluxTunnelResult/ConfluxHandshakeResults. | Gabriela Moldovan | 2025-05-06 | 1 | -4/+4 | |
| | | | ||||||
| * | | tor-proto: Linkify reference to HopDetail. | Gabriela Moldovan | 2025-05-06 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-proto: Fix incorrect RemoveLeg docs. | Gabriela Moldovan | 2025-05-06 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-proto: Clarify ConfluxHandshakeComplete docs. | Gabriela Moldovan | 2025-05-06 | 1 | -2/+3 | |
| | | | ||||||
| * | | tor-proto: Remove unnecessary TODO. | Gabriela Moldovan | 2025-05-06 | 1 | -2/+0 | |
| | | | ||||||
| * | | tor-proto: Add TODO about only switching legs before sending a cell. | Gabriela Moldovan | 2025-05-06 | 1 | -0/+4 | |
| | | | ||||||
| * | | tor-proto: Increment last delivered seqno for items popped from the heap. | Gabriela Moldovan | 2025-05-06 | 2 | -4/+14 | |
| | | | ||||||
| * | | tor-proto: Remove unnecessary &mut self. | Gabriela Moldovan | 2025-05-06 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-proto: Fix typo in warning. | Gabriela Moldovan | 2025-05-06 | 1 | -1/+1 | |
| | | | ||||||
