2020-05-08 00:58:10 +01:00
|
|
|
//! Ciphers used to implement the Tor protocols.
|
2020-05-08 16:19:13 +01:00
|
|
|
//!
|
|
|
|
//! Fortunately, Tor has managed not to proliferate ciphers. It only
|
|
|
|
//! uses AES, and (so far) only uses AES in counter mode.
|
2020-05-08 00:58:10 +01:00
|
|
|
|
|
|
|
/// Re-exports implementations of counter-mode AES
|
2020-05-08 16:45:45 +01:00
|
|
|
///
|
|
|
|
/// These ciphers implement the
|
|
|
|
/// [StreamCipher](https://docs.rs/stream-cipher/0.3.2/stream_cipher/trait.StreamCipher.html)
|
|
|
|
/// trait, so use the
|
|
|
|
/// [stream-cipher](https://docs.rs/stream-cipher/0.3.2/stream_cipher/) crate to access them.
|
2020-05-08 00:58:10 +01:00
|
|
|
pub mod aes {
|
|
|
|
// These implement StreamCipher.
|
|
|
|
pub use aes_ctr::{Aes128Ctr, Aes256Ctr};
|
|
|
|
}
|