1#![cfg_attr(not(feature = "std"), no_std)]
7#![forbid(unsafe_code)]
8
9#[cfg(not(feature = "std"))]
10extern crate alloc;
11
12pub mod aead;
13pub mod aes;
14pub mod cipher;
15pub mod error;
16pub mod streaming;
17
18pub use aead::chacha20poly1305::{
20 derive_chacha20poly1305_key, generate_salt, ChaCha20Poly1305Cipher,
21 ChaCha20Poly1305CiphertextPackage, ChaCha20Poly1305Key, ChaCha20Poly1305Nonce,
22 XChaCha20Poly1305Cipher, XChaCha20Poly1305Nonce,
23};
24pub use aead::gcm::{Aes128Gcm, Aes256Gcm, AesCiphertextPackage, GcmNonce};
25pub use aes::{Aes128Key, Aes256Key};
26pub use cipher::{Aead, SymmetricCipher};
27
28pub use dcrypt_api::error::{Error, Result};
30
31pub use dcrypt_api::error::{validate, ResultExt, SecureErrorHandling, ERROR_REGISTRY};