summaryrefslogtreecommitdiff
path: root/crates/tor-llcrypto/src/cipher.rs
blob: bbd102ed0ee5605c5690ae837dc601a0afec6dc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Ciphers used to implement the Tor protocols.
//!
//! Fortunately, Tor has managed not to proliferate ciphers.  It only
//! uses AES, and (so far) only uses AES in counter mode.

/// Re-exports implementations of counter-mode AES.
///
/// These ciphers implement the `cipher::StreamCipher` trait, so use
/// the [`cipher`](https://docs.rs/cipher) crate to access them.
pub mod aes {
    // These implement StreamCipher.
    pub use ::aes::{Aes128Ctr, Aes256Ctr};
}