Steal rust-crypto's Poly1305 implementation wholesale
[rust-lightning] / src / util / mod.rs
index 842fbea605baba0f89e88d880f305a209c81a068..1a6eb80493404e88a591005d17d1f2480118f7b4 100644 (file)
@@ -5,6 +5,8 @@ pub mod errors;
 pub mod ser;
 
 pub(crate) mod byte_utils;
+pub(crate) mod chacha20;
+pub(crate) mod poly1305;
 pub(crate) mod chacha20poly1305rfc;
 pub(crate) mod internal_traits;
 pub(crate) mod rng;
@@ -20,12 +22,7 @@ pub mod logger;
 pub mod config;
 
 #[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;