summaryrefslogtreecommitdiff
path: root/tor-proto/src/crypto/cell.rs
Commit message (Collapse)AuthorAgeFilesLines
* Misc tests in tor-proto.Nick Mathewson2021-06-191-1/+18
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-181-11/+11
| | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are.
* Upgrade to latest RustCrypto crates.Nick Mathewson2021-05-061-6/+6
|
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-031-2/+2
|
* Avoid a slice copy in send_relay_cell().George Kadianakis2021-03-121-2/+3
| | | | Convert slice to array in the parent function instead of copying.
* Simplify RelayCellBody::recognized() method.George Kadianakis2020-12-171-27/+22
| | | | | | self is no longer mutable. Co-authored-by: David Goulet <[email protected]>
* Run "cargo upgrade".Nick Mathewson2020-10-261-1/+1
|
* Resolve a bunch of XXXM3 comments in tor-proto.Nick Mathewson2020-10-261-2/+0
|
* Implement From, not Into.Nick Mathewson2020-10-191-6/+6
| | | | | These traits are inverses of one another, but implementing From is always preferred since rust 1.41 relaxed the "orphan rules".
* Mark must-resolve XXXX issues with "XXXXM3".Nick Mathewson2020-10-181-1/+1
| | | | | | | | | | "M3" is for "milestone 3" -- my target to fix the technical debt that I think will be bad if we ship even a pre-alpha with it. These aren't necessarily _all_ must-resolve, but they're all must-look-at. Closes #15
* Document all private members in tor-protoNick Mathewson2020-10-131-1/+9
|
* Split client relay crypto into separate directionsNick Mathewson2020-10-091-56/+136
| | | | | I think we should have the reactor task own the reverse crypto and the circuit own the forward crypto.
* make it work on rust 1.45Nick Mathewson2020-09-281-1/+1
|
* test vectors for cell crypto.Nick Mathewson2020-09-281-2/+48
|
* Mark most of the cell crypto code as crate-local.Nick Mathewson2020-09-281-7/+7
|
* Add a round-trip test for cell encryption.Nick Mathewson2020-09-281-0/+74
|
* Split the cell-handling parts of tor-proto into a new crate.Nick Mathewson2020-09-261-1/+1
|
* Try to get sendme crypto workingNick Mathewson2020-09-251-23/+50
| | | | | | | | There's a problem, though: this code assumes that tags are 20 bytes long whereas actually the tag type is part of the crypto layer info. So maybe in the long term we need to move the queue of tags from the send window into being part of the crypto layers.
* Incomplete implementation of circuit SENDME handling.Nick Mathewson2020-09-251-4/+9
| | | | | | This is incomplete because the cell crypto code doesn't actually expose tags yet, and because it demands tags unconditionally, without caring about the linkspec protocol version.
* turn hopnum into a first-class typeNick Mathewson2020-09-211-4/+32
|
* Start implementing streams and circuit-level reactors.Nick Mathewson2020-09-211-2/+2
| | | | | | Also, revise nearly all of the circuit/channel interaction to actually send relay cells to the right place and do sensible things with them.
* Simple functions to send and receive relay cells.Nick Mathewson2020-09-121-0/+2
|
* Refactoring around our 509-byte array type.Nick Mathewson2020-09-121-30/+46
|
* For circuits: Implement first hop create via create_fast.Nick Mathewson2020-09-111-2/+20
|
* update to use latest rust-crypto traits and modulesNick Mathewson2020-06-101-5/+5
|
* Document most of tor-protoNick Mathewson2020-05-091-1/+53
| | | | (except for the worst parts that need refactoring the most)
* Fresh git repository for work on "arti"Nick Mathewson2020-05-071-0/+170
Arti is a rust tor implementation. It's project I've been working on for a few months now, in weekends and in spare time. It doesn't speak the tor protocol yet, and it doesn't connect to the network at all. It needs much more documentation and testing, but I'm just about ready to show it to others. See the README.md for a description of what is there and what isn't.