<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/doc/hsdesc/middle.rs, branch arti-v1.1.6</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.6</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.6'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-06-26T12:45:06Z</updated>
<entry>
<title>netdoc: replace a test TODO with a reference to other tests</title>
<updated>2023-06-26T12:45:06Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-23T15:35:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=69dcacd69b24c3235b646858ffa01ac356276704'/>
<id>urn:sha1:69dcacd69b24c3235b646858ffa01ac356276704</id>
<content type='text'>
The tests called for here already existed.
</content>
</entry>
<entry>
<title>netdoc: fill in some test data</title>
<updated>2023-06-23T15:23:18Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-23T15:23:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e3b13f6cd86758c4c75ad9e04be2d5baa9ef7c27'/>
<id>urn:sha1:e3b13f6cd86758c4c75ad9e04be2d5baa9ef7c27</id>
<content type='text'>
This resolves some TODO HS items now that we are confident we want
to have these actual examples in our tests.
</content>
</entry>
<entry>
<title>netdoc: Introduce HsDescError</title>
<updated>2023-06-22T16:43:30Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-22T16:43:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dbd255217840573ad1536e1f3ba12de1ee2229bc'/>
<id>urn:sha1:dbd255217840573ad1536e1f3ba12de1ee2229bc</id>
<content type='text'>
For higher-level HsDesc-related functions, this type indicates where
exactly an error occurred.  It lets us distinguish decryption errors
from parsing errors, and attribute responsibility to the hsdir, the
onion service, or the user's lack of encryption.

This lets us remove some just-introduced complexity in
tor-hsclient.
</content>
</entry>
<entry>
<title>netdoc::doc::hsdesc changes to let us downgrade/remove allows</title>
<updated>2023-06-16T16:24:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-14T15:44:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1091918525dabb6dd34e11dbfab35fff1552da23'/>
<id>urn:sha1:1091918525dabb6dd34e11dbfab35fff1552da23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netdoc: use ct_lookup for rend descriptor cookie lookup</title>
<updated>2023-06-16T16:24:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-14T16:26:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6edcca7df3df57b58fca154dff5a840a670ff2d7'/>
<id>urn:sha1:6edcca7df3df57b58fca154dff5a840a670ff2d7</id>
<content type='text'>
(I doubt that there is a viable side channel here, but still we
might as well get in the habit of doing these things properly.)
</content>
</entry>
<entry>
<title>netdoc: Downgrade an HS todo wrt HS_DESC_AUTH_TYPE</title>
<updated>2023-06-16T16:24:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-06-14T16:12:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a20c3eda6e2bd5b3df0c99df0ca35e6516c7acf1'/>
<id>urn:sha1:a20c3eda6e2bd5b3df0c99df0ca35e6516c7acf1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netdoc: Rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.</title>
<updated>2023-05-10T14:52:28Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-05-10T14:40:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=099b2315b015b96cd8163a364f92810ea4982cfa'/>
<id>urn:sha1:099b2315b015b96cd8163a364f92810ea4982cfa</id>
<content type='text'>
`ParseErrorSource` was originally meant to represent a parsing error,
this enum has since gained some variants that aren't really parsing
related (`Signature`, `CertSignature`, `UntimelyDescriptor`).

Since this error type is now used for general-purpose netdoc errors,
let's rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-netdoc: Expose test data under new "testing" feature flag</title>
<updated>2023-04-05T10:02:36Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-04-03T15:55:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=38805f53b2c79df7e50a11157acc12807b1f1da3'/>
<id>urn:sha1:38805f53b2c79df7e50a11157acc12807b1f1da3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stop requiring the caller to supply `AuthClient`s.</title>
<updated>2023-03-31T14:04:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-03-27T17:02:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2d9d16aabc34a06596a98e1309a3a7b6f82c01f7'/>
<id>urn:sha1:2d9d16aabc34a06596a98e1309a3a7b6f82c01f7</id>
<content type='text'>
`AuthClient`s were originally meant to represent parsed `auth-client`
lines. In !1070, this struct was repurposed for representing individual
authorized clients in the HS descriptor encoder. However, hidden
services will likely use a list of public keys to represent the
authorized clients rather than a list of `AuthClient`s, as the
information from an `AuthClient` (`client_id`, `iv`, `encrypted_cookie`)
likely won't be immediately available to the hidden service.

This change updates the HS descriptor encoder to represent authorized
clients as a list of `curve25519::PublicKey`s. As such, it is now the
responsibility of the encoder to create the `client_id`, `iv`, and
`encrypted_cookie` using the available keys, the unencrypted descriptor
cookie, and HS subcredential.

Signed-off-by: Gabriela Moldovan &lt;gabi@torproject.org&gt;
</content>
</entry>
<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>
</feed>
