Steal rust-crypto's ChaCha20 implementation wholesale
[rust-lightning] / src / util / mod.rs
1 //! Some utility modules live here. See individual sub-modules for more info.
2
3 pub mod events;
4 pub mod errors;
5 pub mod ser;
6
7 pub(crate) mod byte_utils;
8 pub(crate) mod chacha20;
9 pub(crate) mod chacha20poly1305rfc;
10 pub(crate) mod internal_traits;
11 pub(crate) mod rng;
12 pub(crate) mod transaction_utils;
13
14 #[macro_use]
15 pub(crate) mod ser_macros;
16 #[macro_use]
17 pub(crate) mod macro_logger;
18
19 // These have to come after macro_logger to build
20 pub mod logger;
21 pub mod config;
22
23 #[cfg(feature = "fuzztarget")]
24 pub use self::rng::{reset_rng_state, fill_bytes};
25
26 #[cfg(test)]
27 pub(crate) mod test_utils;