1 // This file is Copyright its original authors, visible in version control
4 // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5 // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7 // You may not use this file except in accordance with one or both of these
10 //! Some utility modules live here. See individual sub-modules for more info.
13 pub(crate) mod fuzz_wrappers;
21 pub mod message_signing;
27 pub(crate) mod atomic_counter;
28 pub(crate) mod byte_utils;
29 pub(crate) mod chacha20;
30 #[cfg(all(any(feature = "_bench_unstable", not(test)), feature = "std"))]
31 pub(crate) mod fairrwlock;
35 pub(crate) mod zbase32;
37 pub(crate) mod poly1305;
38 pub(crate) mod chacha20poly1305rfc;
39 pub(crate) mod transaction_utils;
40 pub(crate) mod scid_utils;
43 /// Logging macro utilities.
45 pub(crate) mod macro_logger;
47 /// Cryptography utilities.
48 pub(crate) mod crypto;
50 // These have to come after macro_logger to build
54 #[cfg(any(test, fuzzing, feature = "_test_utils"))]
57 /// impls of traits that add exra enforcement on the way they're called. Useful for detecting state
58 /// machine errors and used in fuzz targets and tests.
59 #[cfg(any(test, fuzzing, feature = "_test_utils"))]
60 pub mod enforcing_trait_impls;