aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/hsdesc
Commit message (Collapse)AuthorAgeFilesLines
...
* netdoc::hsdesc: Rename "layer" modules.Nick Mathewson2023-02-083-3/+3
|
* netdoc::hsdesc: Excise reference to "password" authenticationNick Mathewson2023-02-081-1/+1
| | | | As far as we can tell, this never existed.
* hscrypto,netdoc: Add and use a type for KP_hss_desc_enc.Nick Mathewson2023-02-081-5/+5
|
* tor-hscrypto: Rename key types to correspond to new spec names.Nick Mathewson2023-02-084-11/+11
|
* Rename DescriptorCookie to DescEncNonceNick Mathewson2023-02-083-16/+15
| | | | | | (I think it's okay to omit the Hs here, since this type is not visible outside the hsdesc parsing code. I'll rename if others disagree.)
* Renaming cleanup for and around now-renamed "KP_hs_desc_ephem".Nick Mathewson2023-02-081-8/+5
|
* Rename key identifiers that have changed in the specNick Mathewson2023-02-082-9/+9
| | | | | | | | | Generated with perl: s/K([PS])_hs_intro_tid/K$1_hs_ipt_sid/g; s/K([PS])_onion_ntor/K$1_ntor/g; s/K([PS])_hs_intro_ntor/K$1_hss_ntor/g; s/K([PS])_hs_desc_ephem/K$1_hss_desc_enc/g;
* Fix typoDimitris Apostolou2023-02-081-1/+1
|
* Update hsdesc parser code to new sectionrules::builder code.Nick Mathewson2023-02-073-8/+8
|
* netdoc::hsdesc: rename Passwd to Password.Nick Mathewson2023-02-071-1/+1
|
* netdoc: Rename/comment objects from inner_layer.Nick Mathewson2023-02-071-20/+38
|
* netdoc: Rename/comment objects from middle_layer.Nick Mathewson2023-02-073-18/+27
|
* netdoc: Rename/comment objects from desc_encNick Mathewson2023-02-073-21/+36
|
* netdoc: Renaming and comments in outer_layer.Nick Mathewson2023-02-071-8/+13
|
* netdoc: Use Itertools::exactly_once in hsdesc parsingNick Mathewson2023-02-071-4/+7
|
* netdoc: Remove useless should_be_exhausted calls.Nick Mathewson2023-02-073-3/+0
|
* Remove a needless line.Nick Mathewson2023-02-071-1/+0
|
* Even more clarifying comments.Nick Mathewson2023-02-073-8/+14
|
* netdoc: Try to add a bunch of clarifying documentation.Nick Mathewson2023-02-074-21/+71
| | | | | In the process I found a couple of keys without identifiers in the spec.
* netdoc: Use Signature::from to construct ed25519 sigs.Nick Mathewson2023-02-071-2/+6
|
* netdoc: Clear up a few typos in hsdesc comments and strings.Nick Mathewson2023-02-071-2/+2
|
* netdoc: Implement onion service descriptor parsers.Nick Mathewson2023-02-071-14/+4
|
* netdoc: Parse the inner layer of an onion service descriptor.Nick Mathewson2023-02-071-0/+349
| | | | | | | | | There are some places where I note certificates which are not currently validated, because there is no cryptographic point in doing so. We should either document that this is okay, or validate the certificates anyway. This code might benefit from refactoring to make it prettier.
* netdoc: Add a workaround for C Tor's lack of mid-layer NLNick Mathewson2023-02-072-2/+6
| | | | | | | It turns out that C Tor doesn't add a newline at the end of the middle layer of an onion service descriptor. I've made a spec MR (torspec!109) to document this: here, it's time to work around the issue.
* netdoc: Parse the middle layer of a hsdesc, and decrypt it.Nick Mathewson2023-02-072-0/+258
|
* netdoc: Use correct size for descriptor encryption cookieNick Mathewson2023-02-071-2/+2
|
* netdoc: move test descriptor to a higher level test moduleNick Mathewson2023-02-071-6/+3
| | | | | We're going to make use of it in all of our tests, so we may as well expose it to them from hsdesc::test.
* netdoc: implement onion service descryptor encryptionNick Mathewson2023-02-072-9/+221
| | | | | This is tested via a round-trip check, and via a successful decryption of our example descriptor's outer layer.
* netdoc: Parser for outer layer of onion service descriptors.Nick Mathewson2023-02-071-0/+254
|
* netdoc: Outline some basic types for encoding HsDescs.Nick Mathewson2023-01-061-0/+47