<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/crypto/binding.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-09-29T06:09:05Z</updated>
<entry>
<title>tor-proto: Refactor the key derivation</title>
<updated>2023-09-29T06:09:05Z</updated>
<author>
<name>Emil Engler</name>
<email>me@emilengler.com</email>
</author>
<published>2023-09-29T06:09:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=295c565944da864925daad3cfab12de010e97690'/>
<id>urn:sha1:295c565944da864925daad3cfab12de010e97690</id>
<content type='text'>
This commit refactors the key derivation, by applying the following:
- The spaghetti slice creation with the hard-to-read boundaries got
  replaced by a closure, which accepts a length, advances the seed slice
  by n bytes as a side-effect, and returns the just advanced bytes
- The use of `.except` got replaced by an `.or`, with the use of the
  already existing `InvalidKDFOutputLength` error, thereby removing a
  potential panic (probably not reachable in runtime though)
- The conversion from a slice to a `CircuitBinding` got moved into a
  `TryFrom` trait of the appropriate data structure
</content>
</entry>
<entry>
<title>tor-proto: Add a missing cfg</title>
<updated>2023-09-13T16:28:27Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-09-13T16:08:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cfbe03f59bc8ab80312d63b3e7aa98fbdb55e467'/>
<id>urn:sha1:cfbe03f59bc8ab80312d63b3e7aa98fbdb55e467</id>
<content type='text'>
Fixes
  cargo clippy -p tor-hsclient --all-features --all-targets
</content>
</entry>
<entry>
<title>proto: API to expose the `CircuitBinding` type.</title>
<updated>2023-08-14T17:15:29Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-08-04T12:51:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=65a0ac5512f7a147e58c64faacc9cb87cb0e4ecf'/>
<id>urn:sha1:65a0ac5512f7a147e58c64faacc9cb87cb0e4ecf</id>
<content type='text'>
Closes #993
</content>
</entry>
<entry>
<title>proto: Add (not-yet-exposed) code to remember and use KH values</title>
<updated>2023-08-14T17:15:29Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-08-03T21:15:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0ffa6eddf5c6ad6542102a4d28b287e744a38aeb'/>
<id>urn:sha1:0ffa6eddf5c6ad6542102a4d28b287e744a38aeb</id>
<content type='text'>
These values are computed as part of the circuit extension
handshake, and are used as MAC keys to bind `ESTABLISH_INTRO`
messages to a particular circuit so that they can't be replayed.

Part of #993.
</content>
</entry>
</feed>
