Use links for traits in llcrypto docs

This commit is contained in:
Nick Mathewson 2020-05-08 11:45:45 -04:00
parent f24ddf0682
commit 641576aa44
4 changed files with 9 additions and 5 deletions

View File

@ -4,6 +4,11 @@
//! uses AES, and (so far) only uses AES in counter mode.
/// Re-exports implementations of counter-mode AES
///
/// 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.
pub mod aes {
// These implement StreamCipher.
pub use aes_ctr::{Aes128Ctr, Aes256Ctr};

View File

@ -4,11 +4,9 @@
//! SHA3, and SHAKE. We re-export them all here, implementing
//! the Digest trait.
//!
//! Other code should access these digests via the Digest trait and
//! its friends.
//! Other code should access these digests via the traits in the
//! [digest](https://docs.rs/digest/0.8.1/digest/) crate.
pub use sha1::Sha1;
pub use sha2::{Sha256, Sha512};
pub use sha3::{Sha3_256, Shake128, Shake256};

View File

@ -9,6 +9,7 @@
//! Encryption is implemented in `cipher`, digests are in `d`, and
//! public key cryptography (including signatures, encryption, and key
//! agreement) are in `pk`.
//!
#![deny(missing_docs)]

View File

@ -1,5 +1,5 @@
use crate::{Error, Result, SecretBytes};
use digest::{ExtendableOutput, Digest};
use digest::{Digest, ExtendableOutput};
use tor_llcrypto::d::{Sha1, Sha256, Shake256};
use zeroize::Zeroizing;