Skip to main content

Module traits

Module traits 

Source
Expand description

All the traits of this crate.

Re-exportsยง

use downcast_rs::Downcast; ๐Ÿ”’
use downcast_rs::impl_downcast; ๐Ÿ”’
use rand::CryptoRng; ๐Ÿ”’
use rand::Rng; ๐Ÿ”’
use ssh_key::Algorithm; ๐Ÿ”’
use ssh_key::AlgorithmName; ๐Ÿ”’
use ssh_key::private::Ed25519Keypair; ๐Ÿ”’
use ssh_key::private::Ed25519PrivateKey; ๐Ÿ”’
use ssh_key::private::KeypairData; ๐Ÿ”’
use ssh_key::private::OpaqueKeypair; ๐Ÿ”’
use ssh_key::public::Ed25519PublicKey; ๐Ÿ”’
use ssh_key::public::KeyData; ๐Ÿ”’
use ssh_key::public::OpaquePublicKey; ๐Ÿ”’
use tor_error::internal; ๐Ÿ”’
use tor_llcrypto::pk::curve25519; ๐Ÿ”’
use tor_llcrypto::pk::ed25519; ๐Ÿ”’
use tor_llcrypto::pk::rsa; ๐Ÿ”’
use tor_llcrypto::rng::EntropicRng; ๐Ÿ”’
use crate::certs::CertData; ๐Ÿ”’
use crate::key_type::CertType; ๐Ÿ”’
use crate::KeyType; ๐Ÿ”’
use crate::KeystoreItemType; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::ssh::ED25519_EXPANDED_ALGORITHM_NAME; ๐Ÿ”’
use crate::ssh::SshKeyData; ๐Ÿ”’
use crate::ssh::X25519_ALGORITHM_NAME; ๐Ÿ”’
use std::result::Result as StdResult; ๐Ÿ”’

Enumsยง

InvalidCertError
The error type returned by ToEncodableCert::validate.
KeystoreItem
A public key, keypair, or key certificate.

Traitsยง

EncodableItem
A key that can be serialized to, and deserialized from.
ItemType
A trait for getting the type of an item.
Keygen
A trait for generating fresh keys.
KeygenRng
A random number generator for generating EncodableItems.
ToEncodableCert
A trait representing an encodable certificate.
ToEncodableKey
A key that can be converted to an EncodableItem.