#![doc(html_root_url="https://briansmith.org/rustdoc/")]
#![allow(
legacy_directory_ownership,
missing_copy_implementations,
missing_debug_implementations,
unknown_lints,
unsafe_code,
// TODO: Deny `unused_qualifications` after
// https://github.com/rust-lang/rust/issues/37345 is fixed.
unused_qualifications,
)]
#![deny(
const_err,
dead_code,
deprecated,
exceeding_bitshifts,
fat_ptr_transmutes,
improper_ctypes,
missing_docs,
mutable_transmutes,
no_mangle_const_items,
non_camel_case_types,
non_shorthand_field_patterns,
non_snake_case,
non_upper_case_globals,
overflowing_literals,
path_statements,
plugin_as_library,
private_no_mangle_fns,
private_no_mangle_statics,
stable_features,
trivial_casts,
trivial_numeric_casts,
unconditional_recursion,
unknown_crate_types,
unreachable_code,
unstable_features,
unused_allocation,
unused_assignments,
unused_attributes,
unused_comparisons,
unused_extern_crates,
unused_features,
unused_import_braces,
unused_must_use,
unused_mut,
unused_parens,
unused_results,
unused_unsafe,
unused_variables,
variant_size_differences,
while_true,
)]
#![no_std]
#![cfg_attr(feature = "internal_benches", allow(unstable_features))]
#![cfg_attr(feature = "internal_benches", feature(test))]
extern crate libc;
#[cfg(feature = "internal_benches")]
extern crate test as bench;
#[cfg(any(target_os = "redox",
all(unix,
not(any(target_os = "macos", target_os = "ios")),
any(not(target_os = "linux"),
feature = "dev_urandom_fallback"))))]
#[macro_use]
extern crate lazy_static;
#[cfg_attr(not(test), macro_use(format, print, println))]
#[cfg_attr(test, macro_use(format, print, println, vec))]
extern crate std;
extern crate untrusted;
#[macro_use]
mod bssl;
#[macro_use]
mod polyfill;
#[path = "aead/aead.rs"]
pub mod aead;
pub mod agreement;
#[cfg(feature = "use_heap")]
mod bits;
mod c;
mod chacha;
pub mod constant_time;
#[doc(hidden)]
pub mod der;
#[path = "digest/digest.rs"]
pub mod digest;
#[path = "ec/ec.rs"]
mod ec;
pub mod error;
pub mod hkdf;
pub mod hmac;
mod init;
mod limb;
pub mod pbkdf2;
mod poly1305;
pub mod rand;
#[cfg(feature = "use_heap")]
#[path = "rsa/rsa.rs"]
mod rsa;
#[cfg(feature = "use_heap")]
#[doc(hidden)]
pub use rsa::GFp_rand_mod;
pub mod signature;
#[cfg(any(feature = "use_heap", test))]
pub mod test;
mod private {
pub trait Private {}
}
#[cfg(test)]
mod tests {
#[cfg(all(feature = "use_heap",
not(any(target_os = "macos", target_os = "ios"))))]
bssl_test_rng!(test_bn, bssl_bn_test_main);
bssl_test!(test_constant_time, bssl_constant_time_test_main);
}