summaryrefslogtreecommitdiff
path: root/crates/tor-hscrypto/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add builder for encoding hidden service descriptors.Gabi Moldovan2023-03-241-1/+10
| | | | | | | | | | | | | | This introduces the `NetdocBuilder` trait described in `netdoc-builder.md` and a new `tor-netdoc::doc::hsdesc::build` module, which exports the `HsDescBuilder`. Hidden services will use `HsDescBuilder` to build and encode hidden service descriptors. There are several TODOs in the code that I'm planning to address separately. Partially addresses #745. Signed-off-by: Gabriela Moldovan <[email protected]>
* hscrypto: add From/Into between RevisionCounter and u64.Nick Mathewson2023-02-071-1/+3
|
* Disable clippy::unlinlined-format-argsNick Mathewson2023-01-271-0/+1
| | | | | | | | This warning kind of snuck up on us! (See #748) For now, let's disable it. (I've cleaned it up in a couple of examples, since those are meant to be more idiomatic and user-facing.) Closes #748.
* hscrypto: Remove Credential.Nick Mathewson2023-01-251-19/+2
| | | | | | It turns out that the credential is only calculated as an intermediate result in order to blind keys and produce the subcredential. As such, it has no need to leave the hscrypto module.
* Apply several clarifications (and fixes for missing refs)Ian Jackson2023-01-251-1/+3
|
* hscrypto: Add our standard clippy warningsNick Mathewson2023-01-241-1/+36
| | | | | | (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: Improve documentation for RendCookieNick Mathewson2023-01-241-1/+5
|
* hscrypto: use a macro to define our byte wrappers too.Nick Mathewson2023-01-241-6/+15
|
* hscrypto: Add and use a macro to define all PK types.Nick Mathewson2023-01-241-0/+1
|
* hscrypto: Associate each type with new name from rend-spec-v3.txtNick Mathewson2023-01-241-2/+2
|
* 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-111-1/+4
| | | | | 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-061-0/+45
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.