8 releases (breaking)

new 0.30.0 May 1, 2025
0.29.0 Apr 1, 2025
0.28.0 Mar 3, 2025
0.27.0 Feb 7, 2025
0.23.0 Sep 30, 2024

#2744 in Cryptography

Download history 111/week @ 2025-01-03 27/week @ 2025-01-10 2/week @ 2025-01-31 134/week @ 2025-02-07 7/week @ 2025-02-14 2/week @ 2025-02-21 128/week @ 2025-02-28 21/week @ 2025-03-07 8/week @ 2025-03-14 108/week @ 2025-03-28 27/week @ 2025-04-04 19/week @ 2025-04-11 5/week @ 2025-04-18

159 downloads per month
Used in arti-relay

MIT/Apache and maybe LGPL-3.0-only

780KB
13K 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

Dependencies

~22–33MB
~520K SLoC