oxabl_cache_crypto/
lib.rs1#[cfg(not(any(feature = "seal", feature = "portable")))]
13compile_error!("oxabl-cache-crypto needs the `seal` or the `portable` feature");
14
15#[cfg(feature = "seal")]
16mod aead;
17#[cfg(feature = "seal")]
18mod compress;
19#[cfg(feature = "seal")]
20mod dictionary_seal;
21mod domain;
22mod keyring;
23#[cfg(feature = "seal")]
24mod nonce;
25mod random;
26mod secret;
27mod signing;
28
29#[cfg(feature = "seal")]
30pub mod dictionary;
31pub mod dictionary_pointer;
32pub mod error;
33pub mod id_token;
34pub mod identity;
35pub mod identity_env;
36pub mod identity_file;
37pub mod identity_string;
38pub mod join;
39pub mod keys;
40pub mod lookup;
41#[cfg(feature = "seal")]
42pub mod object_keys;
43#[cfg(feature = "seal")]
44pub mod record_context;
45#[cfg(feature = "seal")]
46pub mod record_entry;
47#[cfg(feature = "seal")]
48pub mod record_open;
49#[cfg(feature = "seal")]
50pub mod record_seal;
51pub mod roster_draft;
52pub mod roster_member;
53pub mod roster_verify;
54#[cfg(feature = "seal")]
55pub mod segment_info;
56#[cfg(feature = "seal")]
57pub mod segment_open;
58#[cfg(feature = "seal")]
59pub mod segment_seal;
60#[cfg(feature = "seal")]
61pub mod telemetry;
62#[cfg(feature = "seal")]
63pub mod trust;
64pub mod vault;
65
66pub use age::secrecy::{ExposeSecret, SecretString};
67#[cfg(feature = "seal")]
68pub use dictionary::{DEFAULT_DICTIONARY_BYTES, Dictionary, MAX_DICTIONARY_BYTES, train};
69pub use dictionary_pointer::{sign_pointer, verify_pointer};
70#[cfg(feature = "seal")]
71pub use dictionary_seal::{open_dictionary, seal_dictionary};
72pub use error::{Error, Result};
73pub use identity::Identity;
74pub use keys::{LookupKey, RootKey};
75#[cfg(feature = "seal")]
76pub use keys::{RecordKey, SegmentKey};
77#[cfg(feature = "seal")]
78pub use object_keys::ObjectKeys;
79#[cfg(feature = "seal")]
80pub use record_context::RecordContext;
81#[cfg(feature = "seal")]
82pub use record_entry::{Entry, EntryFields, FileEntry};
83#[cfg(feature = "seal")]
84pub use record_open::{OpenedRecord, open_record};
85#[cfg(feature = "seal")]
86pub use record_seal::seal_record;
87pub use roster_draft::RosterDraft;
88pub use roster_member::MemberEntry;
89pub use roster_verify::{RosterPins, VerifiedRoster};
90#[cfg(feature = "seal")]
91pub use segment_info::{SegmentSeal, sealed_segment_len};
92#[cfg(feature = "seal")]
93pub use segment_open::{SegmentExpectation, open_segment};
94#[cfg(feature = "seal")]
95pub use segment_seal::{DEFAULT_ZSTD_LEVEL, SealOptions, seal_compressed, seal_segment};
96#[cfg(feature = "seal")]
97pub use telemetry::{open_telemetry, seal_telemetry, telemetry_epoch};
98#[cfg(feature = "seal")]
99pub use trust::{AcceptedRecord, Provenance};