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 safe;
40mod signing;
41pub use signing::*;
42mod hazmat;
43mod traits;
44pub use traits::{
45 CompositeEncryptable, Decryptable, IdentifyKey, KeySlotId, KeySlotIds, LocalId,
46 PrimitiveEncryptable,
47};
48pub use zeroizing_alloc::ZeroAlloc as ZeroizingAllocator;
49
50#[cfg(feature = "uniffi")]
51uniffi::setup_scaffolding!();
52
53#[cfg(feature = "uniffi")]
54mod uniffi_support;