<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-cell/src/relaycell/msg.rs, branch arti-v1.4.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.4.3</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.3'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-04-16T14:58:49Z</updated>
<entry>
<title>cell, proto: Use correct Data sizes for v1 relay cells</title>
<updated>2025-04-16T14:58:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-04-11T01:57:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=497e5f1acd27c2c316c3f5bbf7158c9516fef159'/>
<id>urn:sha1:497e5f1acd27c2c316c3f5bbf7158c9516fef159</id>
<content type='text'>
Since v1 cells have a longer tag, they can fit less data into a
single cell.  Ah well, that's the cost of improved security.

The code in data.rs is a little wonky, in that it currently requires
its buffer to be exactly the maximum size for a data cell.  We have
a TODO about fixing that in the future, but for now I've moved it to
use a boxed slice rather than a boxed array.

Part of #1944.
</content>
</entry>
<entry>
<title>cell: Remove the deprecated Data::split_from().</title>
<updated>2025-04-16T14:58:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-04-11T01:53:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=01b7c735761d878e68912355d1a16fe50d24e5b3'/>
<id>urn:sha1:01b7c735761d878e68912355d1a16fe50d24e5b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Note some places where we need updates for #1944.</title>
<updated>2025-04-16T14:58:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-04-09T16:35:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=015b39ffe90b652c25cd9c932899bf017c4e740d'/>
<id>urn:sha1:015b39ffe90b652c25cd9c932899bf017c4e740d</id>
<content type='text'>
(Also note a couple of other CGO-related issues)
</content>
</entry>
<entry>
<title>tor-cell: Implement RelayMsg for all conflux message types.</title>
<updated>2025-03-17T19:42:26Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2025-03-17T17:57:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7ff641cc4c054e0f4bf611043b9874ce5562225e'/>
<id>urn:sha1:7ff641cc4c054e0f4bf611043b9874ce5562225e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-cell: Add encodable conflux relay message types.</title>
<updated>2025-02-18T16:55:42Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2025-02-11T19:34:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3f66df0db8c0760c12b800c37bba80f0f08bf489'/>
<id>urn:sha1:3f66df0db8c0760c12b800c37bba80f0f08bf489</id>
<content type='text'>
This adds support for encoding and decoding `RELAY_CONFLUX_LINK`,
`RELAY_CONFLUX_LINKED`, and `RELAY_CONFLUX_SWITCH` cells.

Closes #1852
</content>
</entry>
<entry>
<title>Some HasMemoryCost impls in tor-cell</title>
<updated>2024-10-02T18:11:26Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-09-23T10:51:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=23550d1b0ec0241acdd9b336b41d817eddff59f4'/>
<id>urn:sha1:23550d1b0ec0241acdd9b336b41d817eddff59f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor_cell: never construct empty DATA messages.</title>
<updated>2024-02-13T14:37:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-02-13T14:37:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b5c70dad02124549a13e25f62c8073fef4a063fe'/>
<id>urn:sha1:b5c70dad02124549a13e25f62c8073fef4a063fe</id>
<content type='text'>
We never actually constructed these before, but now we enforce it at
the API level.

Part of #1269.
</content>
</entry>
<entry>
<title>tor_cell: Reject empty DATA messages</title>
<updated>2024-02-13T14:23:04Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-02-13T14:23:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dbe8623356b673cfe716e00fef654ca8bf8a1153'/>
<id>urn:sha1:dbe8623356b673cfe716e00fef654ca8bf8a1153</id>
<content type='text'>
If we don't reject these, they are a way to inject an undetected
traffic signal.  (This is LOW severity, since we only accept DATA
when a stream is open, since DATA messages are rate-limited,
and since using length==1 is nearly as effective.)

Closes #1269.

This is TROVE-2024-001.
</content>
</entry>
<entry>
<title>educe: Use std's default for enums where default variant is unit</title>
<updated>2024-02-12T11:38:36Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-02-12T11:07:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c35c60f848154e80f23ba95a989ff2f9d2594e6a'/>
<id>urn:sha1:c35c60f848154e80f23ba95a989ff2f9d2594e6a</id>
<content type='text'>
Since Rust 1.66, std's default works properly for enums, provided that
the default variant is a unit.

Review all uses of `#[educe(default)]` on enums and replace them with
std where possible, which is most of them.

In 1.66 and later, std's `#[derive(Default)]` doesn't infer any
generic bounds on the derived impl, where it's an enum - since the
unit variant can always be constructed.  So this change doesn't add
any generic bounds and is not API-visible.
</content>
</entry>
<entry>
<title>Use HandshakeType in Extend2 and CircuitExtender::begin</title>
<updated>2023-11-27T16:48:03Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2023-11-16T17:23:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5d7f70c0fe515aee8640f336cc799b70828fd109'/>
<id>urn:sha1:5d7f70c0fe515aee8640f336cc799b70828fd109</id>
<content type='text'>
</content>
</entry>
</feed>
