Nick Mathewson
53c27f7956
Infrastructure for testing handshake cert-validation code
2020-10-21 14:48:19 -04:00
Nick Mathewson
3408c9ad26
Run "cargo upgrade".
2020-10-15 13:32:02 -04:00
Nick Mathewson
610739c139
Enable batch ed25519 verification.
2020-10-02 11:53:50 -04:00
Nick Mathewson
f945af0c41
Document private members in most crates
2020-09-24 19:25:37 -04:00
Nick Mathewson
06a39719c5
Add tests for SignatureGated
2020-09-22 20:50:35 -04:00
Nick Mathewson
e592fff4a2
Tests for Timerangebound.
2020-09-22 20:37:08 -04:00
Nick Mathewson
ee71abe560
Pare down and sort dependencies
2020-09-09 19:17:49 -04:00
Nick Mathewson
9f30b47cb7
Run cargo upgrade, except for stream-cipher.
2020-09-09 19:06:00 -04:00
Nick Mathewson
9a20a6244a
checkable: documentation fix.
2020-09-09 18:06:32 -04:00
Nick Mathewson
d840bbbf64
TimerangeBound: add functions to extend the tolerances
...
(This seems much cleaner than baking extra tolerances into the
"true" validity intervals")
2020-09-08 14:01:26 -04:00
Nick Mathewson
8ef0098716
Refactor timerangebound to unwrap bounds earlier.
...
This will make them easier to adjust
2020-09-08 13:54:01 -04:00
Nick Mathewson
a4f1b27334
Fix clippy warnings; improve key type for consensus.
2020-09-07 17:27:29 -04:00
Nick Mathewson
b3358673b5
Migrate certificate and routerdesc checking to tor-checkable
...
Now these types are parsed and returned wrapped inside a checkable
object.
2020-09-03 14:45:46 -04:00
Nick Mathewson
63adba1744
checkable: Add a simple type for self-signed objects.
2020-09-03 11:13:07 -04:00
Nick Mathewson
481e5e5a63
New module with traits for time-bound and signed objects
...
Too often I've been writing code that defers timeliness checking to
an is_valid_at() method [which you'd better call or else whoops] and
which does signature checking while parsing [not great for
performance].
Instead, let's make return types where you can't get at the interior
object without first either checking the signatures/timeliness, or
declaring that (dangerously) you don't care.
2020-09-01 17:59:58 -04:00