projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Steal rust-crypto's ChaCha20 implementation wholesale
[rust-lightning]
/
src
/
util
/
mod.rs
diff --git
a/src/util/mod.rs
b/src/util/mod.rs
index 2244f9b2fa44e1fb72c3fbf5c8feda1ce883dac0..c31d7be4826a63b0b298e1ff091b8f14d886d3eb 100644
(file)
--- a/
src/util/mod.rs
+++ b/
src/util/mod.rs
@@
-1,8
+1,11
@@
+//! Some utility modules live here. See individual sub-modules for more info.
+
pub mod events;
pub mod errors;
pub mod ser;
pub(crate) mod byte_utils;
pub mod events;
pub mod errors;
pub mod ser;
pub(crate) mod byte_utils;
+pub(crate) mod chacha20;
pub(crate) mod chacha20poly1305rfc;
pub(crate) mod internal_traits;
pub(crate) mod rng;
pub(crate) mod chacha20poly1305rfc;
pub(crate) mod internal_traits;
pub(crate) mod rng;
@@
-13,16
+16,12
@@
pub(crate) mod ser_macros;
#[macro_use]
pub(crate) mod macro_logger;
#[macro_use]
pub(crate) mod macro_logger;
-//
Logger has to come after macro_logger for tests to build:
+//
These have to come after macro_logger to build
pub mod logger;
pub mod logger;
+pub mod config;
#[cfg(feature = "fuzztarget")]
#[cfg(feature = "fuzztarget")]
-pub mod sha2;
-#[cfg(not(feature = "fuzztarget"))]
-pub(crate) mod sha2;
-
-#[cfg(feature = "fuzztarget")]
-pub use self::rng::reset_rng_state;
+pub use self::rng::{reset_rng_state, fill_bytes};
#[cfg(test)]
pub(crate) mod test_utils;
#[cfg(test)]
pub(crate) mod test_utils;