keynest 0.4.0

Simple, offline, cross-platform secrets manager written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Cryptographic primitives for the keystore.
//!
//! Provides encryption and key derivation functions.
pub mod algorithm;
pub mod chacha20poly1305;
pub mod kdf;

pub use chacha20poly1305::generate_salt;
pub use kdf::{KdfParams, derive_key};

/// Length of the salt (16 bytes).
pub const SALT_LEN: usize = 16;
/// Length of the encryption key (32 bytes / 256 bits).
pub const KEY_LEN: usize = 32;