Skip to main content

bitwarden_crypto_primitives/
lib.rs

1#![doc = include_str!("../README.md")]
2
3// Backend driver. Every public module is a thin wrapper over the matching `backend` module, so
4// callers never see backend types.
5//
6//   caller ──► bitwarden_crypto_primitives::<module> ──► backend::<module> ──► RustCrypto
7mod rustcrypto;
8use rustcrypto as backend;
9
10mod error;
11#[cfg(test)]
12mod test_vectors;
13pub use error::Error;
14
15#[macro_use]
16mod hash_module;
17
18pub mod aes_cbc;
19pub mod aes_gcm;
20pub mod argon2;
21pub mod ed25519;
22pub mod hkdf;
23pub mod hmac;
24pub mod ml_dsa_44;
25pub mod p256;
26pub mod pbkdf2;
27pub mod random;
28pub mod ristretto255;
29pub mod rsa;
30pub mod sha1;
31pub mod sha256;
32pub mod sha384;
33pub mod sha512;
34pub mod xaes_256_gcm;
35pub mod xchacha20_poly1305;