cipher/
lib.rs

1//! This crate defines a set of traits which describe the functionality of
2//! [block ciphers][1] and [stream ciphers][2].
3//!
4//! [1]: https://en.wikipedia.org/wiki/Block_cipher
5//! [2]: https://en.wikipedia.org/wiki/Stream_cipher
6
7#![no_std]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9#![doc(
10    html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
11    html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg"
12)]
13#![forbid(unsafe_code)]
14#![warn(missing_docs, rust_2018_idioms)]
15
16#[cfg(feature = "std")]
17extern crate std;
18
19#[cfg(feature = "dev")]
20pub use blobby;
21
22mod block;
23mod common;
24#[cfg(feature = "dev")]
25mod dev;
26pub mod errors;
27mod stream;
28
29pub use crate::{block::*, common::*, stream::*};
30pub use generic_array::{self, typenum::consts};