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 content_format;
16pub use content_format::*;
17mod enc_string;
18pub use enc_string::{EncString, UnsignedSharedKey};
19mod error;
20pub(crate) use error::Result;
21pub use error::{CryptoError, EncodingError};
22mod fingerprint;
23pub use fingerprint::fingerprint;
24mod keys;
25pub use keys::*;
26mod rsa;
27pub use crate::rsa::RsaKeyPair;
28mod stream;
29pub use stream::*;
30mod util;
31pub use util::{generate_random_alphanumeric, generate_random_bytes, pbkdf2};
32mod wordlist;
33pub use wordlist::EFF_LONG_WORD_LIST;
34mod store;
35pub use store::{CipherSuite, KeyStore, KeyStoreContext};
36mod cose;
37pub(crate) use cose::CONTENT_TYPE_PADDED_CBOR;
38pub use cose::{CoseKeyThumbprint, CoseKeyThumbprintExt, CoseSerializable};
39pub mod compat;
40pub mod safe;
41mod signing;
42mod slow_crypto_span;
43pub use signing::*;
44mod hazmat;
45mod traits;
46pub use traits::{
47 CompositeEncryptable, Decryptable, IdentifyKey, KeySlotId, KeySlotIds, LocalId,
48 PrimitiveEncryptable,
49};
50pub use zeroizing_alloc::ZeroAlloc as ZeroizingAllocator;
51
52#[cfg(feature = "uniffi")]
53uniffi::setup_scaffolding!();
54
55#[cfg(feature = "uniffi")]
56mod uniffi_support;