<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/channel/handshake.rs, branch arti-v2.3.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.3.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.3.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-04-21T18:01:27Z</updated>
<entry>
<title>relay: Modify RelayNtorKeys to use a constructor</title>
<updated>2026-04-21T18:01:27Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-21T14:27:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e84f73d564b71c386b4e18020da0093839a8874a'/>
<id>urn:sha1:e84f73d564b71c386b4e18020da0093839a8874a</id>
<content type='text'>
Because of the sorting requirement and the fact that a `KeyMgr` can have
multiple Ntor keys, the caller now explicitly extract the two Ntor keys
it wants from the `KeyMgr` and then creates a `RelayNtorKeys` object
with them.

Future changes (#2495) will move this into a view and warn if there are
more than 2 keys.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Make the CreateRequestHandler::new() take the ntor keys</title>
<updated>2026-04-21T18:01:27Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-16T17:00:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9c2259efabcd59a35b4a6d7422d0ee927b21ff98'/>
<id>urn:sha1:9c2259efabcd59a35b4a6d7422d0ee927b21ff98</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Remove unused imports in unit tests</title>
<updated>2026-04-14T20:10:18Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-14T19:49:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8b23a661bf141312d6dc102cdff08a7e858a51b2'/>
<id>urn:sha1:8b23a661bf141312d6dc102cdff08a7e858a51b2</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Fix relay unit tests with new CreateRequestHandler</title>
<updated>2026-04-14T20:10:18Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-14T19:45:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f885b7be3994eeb972aa78d1c84792f43c8c85aa'/>
<id>urn:sha1:f885b7be3994eeb972aa78d1c84792f43c8c85aa</id>
<content type='text'>
The CreateRequestHandler was introduced prior to the relay handshake
unit tests so fix them now that we have a way to build one.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Add channel relay handshake unit tests</title>
<updated>2026-04-14T18:38:50Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-01T16:44:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=93a2ba3cfbfa1c8f623e62244248c7d418174651'/>
<id>urn:sha1:93a2ba3cfbfa1c8f623e62244248c7d418174651</id>
<content type='text'>
Instead of copying the client unit tests into the channel module, just
make both current unit tests run on a client and relay handshake.

This required a bit of trickery with type HandshakeConnectFn but works
out in the end.

It also adds the RelayMsgBuf that wraps a MsgBuf in order to implement
CertifiedConn which is very relay only.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Move test certs module at the top</title>
<updated>2026-04-14T18:38:50Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-25T18:18:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c68cc3d556085aeb87f214964722fcac385e33df'/>
<id>urn:sha1:c68cc3d556085aeb87f214964722fcac385e33df</id>
<content type='text'>
Just for mental sanity to have all const at the same place and easily
readable.

No behavior change.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Move channel client handshake tests into client module</title>
<updated>2026-04-14T18:38:50Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-25T18:15:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fde437a556f9e06ca23157798d3a45247a75dc6c'/>
<id>urn:sha1:fde437a556f9e06ca23157798d3a45247a75dc6c</id>
<content type='text'>
No behavior change.

Make the const cells public as they will be useful for more upcoming
unit tests especially on the relay side.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Bring back AuthLogDigest and explicitly convert to SLOG/CLOG</title>
<updated>2026-04-08T18:40:52Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-08T17:26:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9801135cc0737e38a9e5da1ee478d5b2e6385057'/>
<id>urn:sha1:9801135cc0737e38a9e5da1ee478d5b2e6385057</id>
<content type='text'>
From opara's comment:
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3844#note_3388789

Keep the low level AuthLogDigest type alias and return it. The callsite
is the one deciding if the returned digest is a Clog or a Slog.

Related to #2441

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>proto: Add ClogDigest and SlogDigest types</title>
<updated>2026-04-08T18:40:14Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-31T16:26:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4e777a8273bbac99990e7e2ecd224ea05c64dded'/>
<id>urn:sha1:4e777a8273bbac99990e7e2ecd224ea05c64dded</id>
<content type='text'>
Introduce those types in order to avoid mixing them up as the previous
AuthLogDigest was just a type alias over [u8; 32]

Fixes #2441

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-{proto,chanmgr}: change how channels accept a CREATE* handler</title>
<updated>2026-04-08T15:29:26Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-04-07T04:14:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dcc6928370ae3018d2d56def9031e5d3cd766622'/>
<id>urn:sha1:dcc6928370ae3018d2d56def9031e5d3cd766622</id>
<content type='text'>
Instead of giving the `CreateRequestHandler` to the channel after it's
constructed, we integrate it into the handshake so that we can give it
to the channel constructor.

The `ChannelType` is no longer part of the `Channel`.

Some of the tests could be cleaned up slightly now that the channel
doesn't need the `ChannelType`, but I don't want to conflict with !3853.
</content>
</entry>
</feed>
