Expand description
§tor-keys
Crate for the cryptographic keys in the Tor landscape.
§Overview
The tor-keys crate manages all high level wrappers around lower-level
cryptographic primitives found in tor-llcrypto.
More specifically, wrappers are used in order to bring semantic on top of lower-level crypto keys which helps avoid mixing keys in the code base.
For example, defining a long term identity relay signing keypair around a lower level ed25519 keypair makes it so that we can’t use that key to be used for another purpose.
This crate is part of Arti, a project to implement Tor in Rust.
License: MIT OR Apache-2.0
Macros§
- Create a curve25519 keypair wrapper given a visibility and a struct name.
- Create an ed25519 keypair wrapper given a visibility and a struct name.
- Implement set of helper functions around a type wrapping an ed25519::Keypair.
- Implement set of helper functions around a type wrapping an ed25519::Keypair.
Structs§
- An encoded ed25519 certificate, created using
Ed25519CertConstructor::encode_and_sign. - A public key or a keypair.
Enums§
- A key certificate.
- A type of certificate stored in the keystore.
- An Error type for this crate.
- The error type returned by
ToEncodableCert::validate. - A type of key stored in the key store.
- A public key, keypair, or key certificate.
- A type of item stored in a keystore.
- SSH key algorithms.
Traits§
- A key that can be serialized to, and deserialized from.
- A trait for generating fresh keys.
- A random number generator for generating
EncodableItems. - A trait representing an encodable certificate.
- A key that can be converted to an
EncodableItem.
Type Aliases§
- A type-erased key. Used by the tor-keymgr.
- A Result type for this crate.