aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-hscrypto/src
Commit message (Collapse)AuthorAgeFilesLines
...
* hscrypto: Use derive_more, and derive Deref for public keys.Nick Mathewson2023-01-251-32/+2
|
* hscrypto: Revise TimePeriod to account for variable offset.Nick Mathewson2023-01-242-22/+34
| | | | | | | | Previously, the offset was set to 12 hours unconditionally (like the spec says). But based on a conversation on tor-dev, it seems that the offset should actually be 12 times the voting interval. I'm also opening an MR to change the spec.
* hscrypto: Add documentation for ClientSecretKeysNick Mathewson2023-01-241-0/+3
|
* Add a note about why we use ExpandedSecretKey for OnionIdSecretKeyNick Mathewson2023-01-242-2/+7
|
* hscrypto: Add our standard clippy warningsNick Mathewson2023-01-244-1/+66
| | | | | | (I have squashed the fixes for these warnings into the earlier commits in this branch, so it will look like I did everything right the first time.)
* hscrypto: Implement key blinding.Nick Mathewson2023-01-242-10/+225
| | | | | This implementation was made based on the specification, and then validated against itself, and against C Tor.
* hscrypto: Add an implementation for TimePeriodNick Mathewson2023-01-241-11/+118
| | | | | This required some API tweaks, which is probably to be expected; these time periods are a wonky kind of thing.
* hscrypto: Implement hs_mac.Nick Mathewson2023-01-241-2/+55
|
* hscrypto: Improve documentation for RendCookieNick Mathewson2023-01-241-1/+5
|
* hscrypto: use a macro to define our byte wrappers too.Nick Mathewson2023-01-243-10/+56
|
* hscrypto: Add and use a macro to define all PK types.Nick Mathewson2023-01-243-36/+88
|
* hscrypto: A couple of spelling fixes.Nick Mathewson2023-01-241-2/+2
|
* hscrypto: Associate each type with new name from rend-spec-v3.txtNick Mathewson2023-01-242-10/+12
|
* CircMgr: Draft APIs used to implement onion service clients.Nick Mathewson2023-01-241-0/+9
|
* Sketch APIs for the onion service directory ring.Nick Mathewson2023-01-111-4/+0
| | | | | | | | | These are a bit complex internally, but the API they present is pretty simple. I've left some discussion of points where the design isn't totally fleshed out, and where we need to look harder at the spec. Part of #716.
* hscrypto: Add several derivesNick Mathewson2023-01-113-1/+14
| | | | | The important addition here is the Copy derives, which affect API design. I'm applying them to the types that are 32 byte or smaller.
* Create a new tor-hscrypto crate.Nick Mathewson2023-01-064-0/+219
This module has types and operations needed in multiple places for an onion service implementation. There are a bunch of TODO hs-crypto comments that we'll need to fill in.