summaryrefslogtreecommitdiff
path: root/tor-llcrypto/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-182-2/+2
|
* Add noop_method_call warning.Nick Mathewson2021-05-271-0/+1
| | | | | | This would have saved ahf and me a lot of confusion in debugging a situation where we were cloning a reference of a type that didn't implement Clone.
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+1
|
* tor-llcrypto: finish a sentence in the docs.Nick Mathewson2021-05-241-1/+3
|
* Add a link tto the tor website to arti blurb.Nick Mathewson2021-05-241-1/+2
|
* Add tor-proto docs and tweak docs+apis elsewhere.Nick Mathewson2021-05-211-5/+5
|
* tor-llcrypto: Improve documentation and move keyblinding.Nick Mathewson2021-05-219-162/+317
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-182-1/+2
| | | | | | 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-1/+1
|
* Add trait_duplication_in_bounds warning.Nick Mathewson2021-05-031-0/+1
|
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-032-1/+2
|
* Add a few more clippy warningsNick Mathewson2021-05-031-0/+5
|
* Add some more clippy warnings to our list.Nick Mathewson2021-04-271-1/+6
|
* Enforce (and obey) clippy lints about exhaustive enums, structs.Nick Mathewson2021-04-272-0/+4
| | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change).
* Resolve two clippy warnings in blind_pubkey.Nick Mathewson2021-03-291-2/+2
|
* Merge remote-tracking branch 'origin/mr/23'Nick Mathewson2021-03-291-0/+107
|\
| * v3: Add two new test vectors that test key blinding clamping.George Kadianakis2021-03-301-0/+6
| |
| * v3: Improve error handling on key blinding.George Kadianakis2021-03-301-5/+22
| |
| * Implement basic ed25519 key blinding for v3 onion services.George Kadianakis2021-03-291-0/+84
| |
* | Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-291-2/+2
| | | | | | | | This is painful, but we shouldn't have to do it again.
* | Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-291-37/+37
|/
* Add a compatibility layer so we can upgrade rand_core.Nick Mathewson2021-03-183-1/+85
| | | | | | dalek-crypto is stuck on rand_core 0.5.1, so we've been stuck too. This commit introduces a compatibility module so that we can wrap new rand_core instances to make them backward compatible.
* Change an unwrap() in llcrypto to an expect().Nick Mathewson2021-03-161-1/+1
|
* Avoid unwrap() in llcrypto.Nick Mathewson2021-03-041-1/+1
|
* run cargo fix --edition-idiomsNick Mathewson2021-02-252-4/+4
|
* Add serde implementations for identity key types.Nick Mathewson2021-02-102-0/+117
|
* Make RSAIdentity implement Copy.Nick Mathewson2020-12-081-2/+1
|
* De-parameterize ChanMgr and everything that wraps it.Nick Mathewson2020-12-081-0/+1
| | | | | | | | | | | | | | This makes a whole lot of our code simpler, and makes it so that CircMgr and DirMgr no longer need to have anything parameterized over transports, either. Instead of boxing Transport inside of ChanMgr, I've made a new Connection trait that goes from a ChanTarget* straight to a Channel. This lets us avoid having to box the intermediate TLS object. [*] Actually, a copy of the information from a ChanTarget. Ick, but I had to make a copy to avoid parameterizing Connecter::build_channel.
* Run cargo fix --edition-idiomsNick Mathewson2020-12-021-2/+2
|
* Tests for tor-chanmgr.Nick Mathewson2020-10-301-0/+1
|
* Implement a channel-manager type to get or launch channels on request.Nick Mathewson2020-10-301-1/+1
|
* Run "cargo upgrade".Nick Mathewson2020-10-261-2/+2
|
* Use from_bytes name for Ed25519IdentityNick Mathewson2020-10-251-2/+2
|
* Test for finish-handshake functionNick Mathewson2020-10-231-0/+6
|
* More tests for ed25519identityNick Mathewson2020-10-211-2/+9
|
* Implement From, not Into.Nick Mathewson2020-10-191-4/+4
| | | | | These traits are inverses of one another, but implementing From is always preferred since rust 1.41 relaxed the "orphan rules".
* Validate master-key-ed25519 field in routerdescsNick Mathewson2020-10-191-0/+6
|
* Improvements to Relay type in tor-netdir.Nick Mathewson2020-10-191-0/+8
| | | | | | | | | | | Now, a Relay is always valid. This required some changes to the API: all_relays() has to return a new UncheckedRelay type that might or might not be valid, and the functions on Relay and ChanTarget that return ed25519 identities need to return an Ed25519Identity, not an ed25519::PublicKey. This change required some new encoding/decoding/conversion functions on Ed25519Identity.
* Clarify kludgey magic in our to_der() function.Nick Mathewson2020-10-181-1/+6
|
* Use Ed25519Identity in microdescriptors.Nick Mathewson2020-10-151-3/+12
|
* Add an (unchecked) Ed25519Identity typeNick Mathewson2020-10-151-0/+76
| | | | | This type differs from ed25519::PublicKey in that it is _not_ checked or expanded.
* llcrypto: Move ed25519 module into its own file.Nick Mathewson2020-10-152-75/+74
|
* tests for some failing cases in mdconsensusNick Mathewson2020-10-061-1/+1
|
* Make rsa::PublicKey derive Debug.Nick Mathewson2020-10-021-1/+1
|
* Enable batch ed25519 verification.Nick Mathewson2020-10-021-0/+58
|
* Document private members in most cratesNick Mathewson2020-09-244-2/+25
|
* 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.
* stop exposing rsa::errors::Result.Nick Mathewson2020-09-131-7/+4
|
* Add unit test for ValidatableEd25519SignatureNick Mathewson2020-09-131-0/+28
|
* Add test vectors for curve25519->ed25519 parts of llcryptoNick Mathewson2020-09-131-1/+2
| | | | | | 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.)