<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/doc/hsdesc/inner.rs, branch arti-v1.1.3</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.3</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.3'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-03-24T18:57:49Z</updated>
<entry>
<title>Add builder for encoding hidden service descriptors.</title>
<updated>2023-03-24T18:57:49Z</updated>
<author>
<name>Gabi Moldovan</name>
<email>gabi@gotpcrel.net</email>
</author>
<published>2023-03-16T13:51:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a1074c00276b3f009444a9af0ee06a0f2d08d721'/>
<id>urn:sha1:a1074c00276b3f009444a9af0ee06a0f2d08d721</id>
<content type='text'>
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 &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-netdoc: Validate inner certs in HsDesc</title>
<updated>2023-03-01T14:48:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-03-01T14:43:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a4a305c1cf98e160ce51c2b8461d7ae45d78ce51'/>
<id>urn:sha1:a4a305c1cf98e160ce51c2b8461d7ae45d78ce51</id>
<content type='text'>
This makes our implementation behave the same as the C tor
implementation, by validating all of the expiration and signatures
on the certificates in the inner document.

(It is still not semantically necessary to check these certs: the
document in which they appear is already signed by the key with
which they are allegedly signed.)

Closes #744
</content>
</entry>
<entry>
<title>netdoc: Remove a TODO hs comment.</title>
<updated>2023-02-17T20:06:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-17T20:06:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=757c6d333f07ddfd20c4bf5bdf3f9393174c4116'/>
<id>urn:sha1:757c6d333f07ddfd20c4bf5bdf3f9393174c4116</id>
<content type='text'>
It said to check whether C enforces an absence of extraneous bytes
at the end of the link specifiers.  It does, in
`hs_desc.c:decode_link_specifiers()`, where it says:

```
  if (link_specifier_list_parse(&amp;specs, decoded,
                                (size_t) decoded_len) &lt; decoded_len) {
    goto err;
  }
```

The comparison with "decoded_len" checks whether all the bytes were
decoded.
</content>
</entry>
<entry>
<title>tor-netdoc: Run rustfmt (separately from the refactoring)</title>
<updated>2023-02-15T17:17:01Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-15T17:12:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=676241c3490ee25c5b09f1b3c5693021e6de2030'/>
<id>urn:sha1:676241c3490ee25c5b09f1b3c5693021e6de2030</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Remove many needless calls to .iter() and .into_iter()</title>
<updated>2023-02-15T17:17:01Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-15T16:18:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4a91c732fe4b597ad4e90564ca4630ac3048938a'/>
<id>urn:sha1:4a91c732fe4b597ad4e90564ca4630ac3048938a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netdoc: Add a feature to expose hsdesc inner doc parsers</title>
<updated>2023-02-14T12:44:18Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-14T12:44:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=79dd2ef99505242751e1f6ff0548072b21ed53cc'/>
<id>urn:sha1:79dd2ef99505242751e1f6ff0548072b21ed53cc</id>
<content type='text'>
We want to fuzz these parsers, but there's no currently way to get
at the parsers for inner documents without going through a lot of
encryption.  (Coverage-guided fuzzers are powerful, but they
can't find SHA3 preimages.)
</content>
</entry>
<entry>
<title>batching_split_before: Rename "prefix" to "header"</title>
<updated>2023-02-13T16:55:36Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-13T16:55:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e44be77f52c3d8f4d102b80f9bdb97f3daf20046'/>
<id>urn:sha1:e44be77f52c3d8f4d102b80f9bdb97f3daf20046</id>
<content type='text'>
As per
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1016#note_2877759

"_prefixed" becomes "_with_header".  That mirrors the returned struct
which is nice.
</content>
</entry>
<entry>
<title>tor-netdoc: Use batching_split_before in HsDescInner</title>
<updated>2023-02-10T19:47:45Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-10T13:12:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d35f7990e84aefaaac450198f161b40cbb036869'/>
<id>urn:sha1:d35f7990e84aefaaac450198f161b40cbb036869</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netdoc: Fix most "TODO HS rename" comments</title>
<updated>2023-02-08T18:23:21Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-08T18:23:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=39f5f90f3f0a7041ff147e37628bbdf8ba731102'/>
<id>urn:sha1:39f5f90f3f0a7041ff147e37628bbdf8ba731102</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netdoc::hsdesc: Distinguish layer from document.</title>
<updated>2023-02-08T18:16:44Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-08T18:16:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8c3bd3626b10e8b25ed347a46be6daa654cf31ad'/>
<id>urn:sha1:8c3bd3626b10e8b25ed347a46be6daa654cf31ad</id>
<content type='text'>
</content>
</entry>
</feed>
