dumb_crypto/
lib.rs

1//! # dumb-crypto
2//!
3//! This library implements following cryptographic routines in the dumbest and
4//! the most obvious way:
5//!
6//! - sha256
7//! - hmac-sha256
8//! - pbkdf2-sha256
9//! - salsa20
10//! - scrypt
11//!
12//! Normally, one would find a highly optimized code implementing those.
13//! However, verifying such code is a non-trivial task.
14//!
15//! All routines (except for scrypt itself) are pre-requisites for scrypt. They
16//! are provided here just for convenience.
17//!
18//! Documentation is available for each separate module.
19//!
20
21#[macro_use]
22mod common;
23mod pkcs7;
24
25pub mod aes;
26pub mod aes_cbc;
27pub mod hmac;
28pub mod pbkdf2;
29pub mod salsa20;
30pub mod scrypt;
31pub mod sha256;