Skip to main content

weirdnet_keys/
lib.rs

1//! Key material and key policy: keys, words, shards, derivation, sealing, agreement, MACs,
2//! the envelope keyring, dark shards and password exports.
3//!
4//! Every operation that encrypts, decrypts, derives, wraps, rotates, recovers, backs up or
5//! exports key material lives here, on vetted crates only. Labels come from a [`Profile`];
6//! files and the database come in through traits the application implements.
7#![forbid(unsafe_code)]
8
9pub mod aead;
10#[cfg(feature = "age")]
11pub mod agefile;
12pub mod dark;
13mod error;
14pub mod exchange;
15pub mod kdf;
16mod key;
17pub mod keyring;
18pub mod mac;
19pub mod password;
20mod profile;
21pub mod shards;
22pub mod words;
23
24pub use aead::{Sealed, open, seal};
25pub use error::{KeysError, Result};
26pub use key::{Key32, random_bytes};
27pub use password::{PasswordSealed, password_open, password_seal};
28pub use profile::Profile;
29pub use secrecy::{self, ExposeSecret, SecretString};
30pub use zeroize::{self, Zeroizing};