1#![doc = include_str!("../README.md")]
2
3#[cfg(not(feature = "no-memory-hardening"))]
12#[global_allocator]
13static ALLOC: ZeroizingAllocator<std::alloc::System> = ZeroizingAllocator(std::alloc::System);
14
15mod aes;
16mod content_format;
17pub use content_format::*;
18mod enc_string;
19pub use enc_string::{EncString, UnsignedSharedKey};
20mod error;
21pub(crate) use error::Result;
22pub use error::{CryptoError, EncodingError};
23mod fingerprint;
24pub use fingerprint::fingerprint;
25mod keys;
26pub use keys::*;
27mod rsa;
28pub use crate::rsa::RsaKeyPair;
29mod util;
30pub use util::{generate_random_alphanumeric, generate_random_bytes, pbkdf2};
31mod wordlist;
32pub use wordlist::EFF_LONG_WORD_LIST;
33mod store;
34#[expect(deprecated)]
35pub use store::{
36 KeyStore, KeyStoreContext, RotatedUserKeys, dangerous_get_v2_rotated_account_keys,
37};
38mod cose;
39pub(crate) use cose::CONTENT_TYPE_PADDED_CBOR;
40pub use cose::CoseSerializable;
41pub mod safe;
42mod signing;
43pub use signing::*;
44mod traits;
45mod xchacha20;
46pub use traits::{
47 CompositeEncryptable, Decryptable, IdentifyKey, KeyId, KeyIds, LocalId, PrimitiveEncryptable,
48};
49pub use zeroizing_alloc::ZeroAlloc as ZeroizingAllocator;
50
51#[cfg(feature = "uniffi")]
52uniffi::setup_scaffolding!();
53
54#[cfg(feature = "uniffi")]
55mod uniffi_support;