2024-02-15 18:47:36 +01:00
#[ cfg(feature = " encryption " ) ]
mod encryption ;
2024-02-15 10:56:21 +01:00
mod error ;
2024-02-15 18:17:49 +01:00
#[ cfg(any(feature = " encryption " , feature = " ikm-management " )) ]
2024-02-14 23:11:00 +01:00
mod ikm ;
2024-02-15 18:17:49 +01:00
#[ cfg(any(feature = " encryption " , feature = " ikm-management " )) ]
2024-02-15 10:00:06 +01:00
mod scheme ;
2024-02-14 18:16:45 +01:00
2024-02-15 18:47:36 +01:00
#[ cfg(feature = " encryption " ) ]
pub use encryption ::{ decrypt , encrypt } ;
2024-02-15 10:56:21 +01:00
pub use error ::Error ;
2024-02-15 18:17:49 +01:00
#[ cfg(any(feature = " encryption " , feature = " ikm-management " )) ]
2024-02-14 23:11:00 +01:00
pub use ikm ::InputKeyMaterialList ;
2024-02-15 18:17:49 +01:00
#[ cfg(any(feature = " encryption " , feature = " ikm-management " )) ]
2024-02-15 10:00:06 +01:00
pub use scheme ::Scheme ;
2024-02-14 18:16:45 +01:00
2024-02-15 12:37:14 +01:00
#[ cfg(feature = " ikm-management " ) ]
2024-02-15 18:56:52 +01:00
const DEFAULT_IKM_DURATION : u64 = 60 * 60 * 24 * 7305 ; // In seconds, set to 7305 days (aprox. 20 years)
2024-02-15 12:37:14 +01:00
#[ cfg(feature = " ikm-management " ) ]
2024-02-15 10:00:06 +01:00
const DEFAULT_SCHEME : Scheme = Scheme ::XChaCha20Poly1305WithBlake3 ;
2024-02-15 11:09:22 +01:00
#[ cfg(not(feature = " i-understand-and-accept-the-risks " )) ]
compile_error! ( " This crate is experimental and therefore comes with absolutely no security guaranty. To use it anyway, enable the \" i-understand-and-accept-the-risks \" feature. " ) ;