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§
- A public key or a keypair.
Enums§
- An Error type for this crate.
- A type of key stored in the key store.
- 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
EncodableKeys. - A key that can be converted to an
EncodableKey.
Type Aliases§
- A type-erased key. Used by the tor-keymgr.
- A Result type for this crate.