insectbox 0.1.0

OpenSSH inspired in-memory key security.
Documentation
//! # InsectBox
//!
//! This crate aims to provide in-memory security inspired by OpenSSH 
//! in-memory key encryption.
//!
//! # Warning
//!
//! This crate is very unsafe and full of unsafe code. It should not be used 
//! for any real aplication, **UNLESS** it actually is deemed safe enough 
//! after reviewing the source code.
//!
//! # Features
//!
//! | Feature | Description |
//! | ------- | ----------- |
//! | `secbox` | [`SecBox<T>`] and [`InsecBox<T>`] types |
//! | `cryptbox` | [`CryptBox<T>`] and [`PlainBox<T>`] types |
//!
//! *Note: the `secbox` feature is enabled by default*
//!
//! # The [`utils`] module
//!
//! This module is public for one simple reason: to allow other users to 
//! implement types similar or better than the ones provided in this crate. 
//! It also provides almost the same utilities as the 
//! [memsec](https://crates.io/crates/memsec) crate, but actually documents them.
pub mod utils;

#[cfg(feature="cryptbox")]
mod cryptbox;
#[cfg(feature="cryptbox")]
mod pagevec;
#[cfg(feature="secbox")]
mod secbox;

#[cfg(feature="secbox")]
pub use secbox::*;

#[cfg(feature="cryptbox")]
pub use cryptbox::*;