6 releases (breaking)

0.28.0 Mar 3, 2025
0.27.0 Feb 7, 2025
0.26.0 Jan 7, 2025
0.25.0 Dec 2, 2024
0.23.0 Sep 30, 2024

#2585 in Cryptography

Download history 3/week @ 2024-11-17 1/week @ 2024-11-24 152/week @ 2024-12-01 17/week @ 2024-12-08 2/week @ 2024-12-15 125/week @ 2025-01-05 13/week @ 2025-01-12 116/week @ 2025-02-02 21/week @ 2025-02-09 7/week @ 2025-02-16 1/week @ 2025-02-23 132/week @ 2025-03-02

196 downloads per month
Used in arti-relay

MIT/Apache and maybe LGPL-3.0-only

745KB
12K SLoC

tor-relay-crypto

tor-relay-crypto: Cryptography module for a relay.

Overview

This crate is part of Arti, a project to implement Tor in Rust.

Relays need some cryptographic operations to be able to publish their descriptors and authenticate channels in order to prove their identity.

  • A set of keys that are long-term, mid-term and short-term mostly used for channel authentication.

This crate implements operations around those keys, along with a set of wrapper types to keep us from getting confused about the numerous keys. Semantic around objects is always better than generic names ;)!

License: MIT OR Apache-2.0


lib.rs:

Dependencies

~21–33MB
~507K SLoC