Skip to main content

Crate tor_relay_crypto

Crate tor_relay_crypto 

Source
Expand description

§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

Modules§

certs 🔒
Certificate related types and functions for an arti relay.
pk
This module is where all relay related keys are declared along their key specifier for the KeyMgr so some of them can be stored on disk.

Structs§

RelayLinkSigningKeyCert
Certificate for the short-term signing keypair for link authentication.
RelaySigningKeyCert
Certificate for the medium-term relay signing key (K_relaysign_ed).

Functions§

gen_link_cert
Generate the relay link certificate from the given relay signing keypair and the relay link keypair.
gen_signing_cert
Generate the relay signing certificate from the given relay identity keypair and the relay signing keypair.
gen_tls_cert
Generate the signed TLS certificate from the given relay signing keypair and the TLS cert digest.