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;
16 pub(crate) mod ser_macros;
21 pub mod message_signing;
26 pub(crate) mod atomic_counter;
27 pub(crate) mod byte_utils;
28 pub(crate) mod chacha20;
29 #[cfg(all(not(test), feature = "std"))]
30 pub(crate) mod fairrwlock;
34 pub(crate) mod zbase32;
36 pub(crate) mod poly1305;
37 pub(crate) mod chacha20poly1305rfc;
38 pub(crate) mod transaction_utils;
39 pub(crate) mod scid_utils;
42 /// Logging macro utilities.
44 pub(crate) mod macro_logger;
46 /// Cryptography utilities.
47 pub(crate) mod crypto;
49 // These have to come after macro_logger to build
53 #[cfg(any(test, fuzzing, feature = "_test_utils"))]
56 /// impls of traits that add exra enforcement on the way they're called. Useful for detecting state
57 /// machine errors and used in fuzz targets and tests.
58 #[cfg(any(test, fuzzing, feature = "_test_utils"))]
59 pub mod enforcing_trait_impls;