summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Turn IdMap into an extension trait.Nick Mathewson2020-09-234-97/+38
| | | | | Also, use the "right" (cyclic, potentially expensive) algorithm for stream IDs.
* A few tests for tor-linkspecNick Mathewson2020-09-232-0/+68
|
* Tests (and correctness fixes) for protover.Nick Mathewson2020-09-221-2/+95
|
* Add tests for SignatureGatedNick Mathewson2020-09-221-0/+45
|
* Tests for Timerangebound.Nick Mathewson2020-09-221-0/+76
|
* Run cargo fix --edition-idiomsNick Mathewson2020-09-211-1/+1
|
* Run cargo upgradeNick Mathewson2020-09-213-8/+6
|
* Update documentationNick Mathewson2020-09-213-6/+12
|
* Update TODO fileNick Mathewson2020-09-211-4/+8
|
* turn hopnum into a first-class typeNick Mathewson2020-09-213-14/+41
|
* Add is_zero for ID types.Nick Mathewson2020-09-213-5/+22
|
* Fix some errors; document some places where error handling is bogusNick Mathewson2020-09-215-8/+37
|
* More documentation for channel, circuit, stream.Nick Mathewson2020-09-218-92/+372
|
* Start implementing streams and circuit-level reactors.Nick Mathewson2020-09-2114-202/+601
| | | | | | Also, revise nearly all of the circuit/channel interaction to actually send relay cells to the right place and do sensible things with them.
* Add RelayCmd::accepts_streamid_valNick Mathewson2020-09-201-0/+49
|
* Refactor accetps_circid_val to be less wonky.Nick Mathewson2020-09-201-9/+17
|
* Move is_recognized function into caret.Nick Mathewson2020-09-203-23/+7
|
* Rename StreamCmd to RelayCmdNick Mathewson2020-09-203-41/+40
|
* Improve shutdown support for channel. No idea if it works.Nick Mathewson2020-09-201-14/+7
|
* rename a field in RelayCellNick Mathewson2020-09-201-12/+9
|
* Create a StreamID->Stream map type.Nick Mathewson2020-09-207-42/+139
| | | | | Also extract the shared part of CircMap and StreamMap into a new IdMap type.
* De-parameterize channel and circuitNick Mathewson2020-09-195-41/+30
| | | | | | By putting the cell-sink in a box, we can get rid of the need for having everything that uses a channel or a circuit know what kind of underlying TLS implementation it has.
* Add tests for CREATE_FAST handshakeNick Mathewson2020-09-194-26/+100
|
* Add tests for failing ntor handshakes.Nick Mathewson2020-09-191-1/+51
|
* ntor: test the ClientHandshake/ServerHandshake implNick Mathewson2020-09-181-3/+4
|
* tests for kdf functions in tor_protoNick Mathewson2020-09-181-0/+127
|
* Add tests for tor_proto::util::ctNick Mathewson2020-09-181-0/+31
|
* Give up on suppressing that nightly-only clippy warningNick Mathewson2020-09-182-27/+21
|
* Make consensus documents valid DistDelay seconds earlier.Nick Mathewson2020-09-181-1/+4
| | | | | This will prevent arti from hitting the same issue as https://gitlab.torproject.org/tpo/core/tor/-/issues/25756
* Resolve some nightly-only clippy warningsNick Mathewson2020-09-173-1/+5
|
* Fix a panic bug in microdesc parsing.Nick Mathewson2020-09-172-1/+4
| | | | | | | | Found by fuzzing! The issue was that we were relying on the arguments slice being within the input string, but we were sometimes using a different _empty_ slice when there were no arguments. I've noted a better solution in a comment.
* Add fuzzers for certs, netdoc, and proto.Nick Mathewson2020-09-1716-1/+216
| | | | This was remarkably simple.
* Sort linkspecs in the same order as tor doesNick Mathewson2020-09-174-4/+27
|
* use more correct expiration timesNick Mathewson2020-09-171-3/+2
|
* More tests for tor_bytes::implNick Mathewson2020-09-151-1/+25
|
* tor_bytes: Remove an extraneous printlnNick Mathewson2020-09-151-4/+2
|
* bytes: add tests for impl.rsNick Mathewson2020-09-151-0/+113
|
* bytes: add tests for Writer traitNick Mathewson2020-09-142-0/+56
|
* bytes: more test for Reader.Nick Mathewson2020-09-141-4/+86
|
* Add test for failing RSA identity constructionNick Mathewson2020-09-131-0/+7
|
* Add some test vectors for rsa, taken from chutneyNick Mathewson2020-09-132-0/+78
|
* Now that the rsa crate has pkcs1 decoding, use it.Nick Mathewson2020-09-131-40/+7
| | | | | | Also, instead of implementing an otherwise-derivable Hash for rsa public keys, tell clippy not to worry that we're defining partialeq but not hash.
* update wishlist: the rsa crate now supports oaepNick Mathewson2020-09-132-4/+2
|
* stop exposing rsa::errors::Result.Nick Mathewson2020-09-131-7/+4
|
* Add unit test for ValidatableEd25519SignatureNick Mathewson2020-09-131-0/+28
|
* caret tests: Test debug output for caret_enumNick Mathewson2020-09-131-0/+1
|
* Add test vectors for curve25519->ed25519 parts of llcryptoNick Mathewson2020-09-132-1/+53
| | | | | | Also add a terminating NUL byte to a derivation string, to ensure that our results match Tor's results. (This does not actually serve a purpose FWICT.)
* llcrypto: Fix a bug in ed25519->curve25519 secret key conversionNick Mathewson2020-09-132-4/+31
| | | | | | | We were taking the sign bit from the _secret_ key, which is totally incorrect. Instead it needs to be taken from the _public_ key. Additionally, add a unit test for ed25519->curve25519 code.
* llcrypto: tests for rsa kludgeNick Mathewson2020-09-134-0/+31
|
* More tests for caret_int.Nick Mathewson2020-09-131-0/+45
|