You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
862 B

4 years ago
//! Collection of helpers for cryptography things.
//! All modules are feature gated.
//!
//! * sha256 - `sha256` feature
//! * password - `password` feature
//! * aes - `aes` feature
//! * crc - `checksum` feature
//! * rsa - `rsa` feature
//!
//! There is also `full` for enabling them all.
//!
//! # Async processing
//! The `async` feature adds asynchronous streaming functions with Tokio's `AsyncRead` and `AsyncWrite` traits.
4 years ago
#![allow(dead_code)]
4 years ago
pub mod consts;
#[allow(unused_imports)]
4 years ago
use consts::*;
4 years ago
mod util;
mod bytes;
4 years ago
4 years ago
#[allow(unused_imports)]
4 years ago
mod error;
4 years ago
#[cfg(feature="serde")]
use serde_derive::{
Serialize, Deserialize,
};
4 years ago
// Actual things
#[cfg(feature="sha256")]
pub mod sha256;
#[cfg(feature="password")]
pub mod password;
#[cfg(feature="aes")]
pub mod aes;
#[cfg(feature="checksum")]
pub mod crc;
4 years ago
#[cfg(feature="rsa")]
pub mod rsa;