-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathlib.rs
More file actions
77 lines (72 loc) · 2.68 KB
/
lib.rs
File metadata and controls
77 lines (72 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! FFI bindings for core-crypto.
//!
//! Actual implementation happens in the `core-crypto` crate. This crate is about setting up all the necessary
//! annotations, wrappers, etc necessary to package those types, items, and methods for FFI via uniffi and wasm-bindgen.
// No public item in this crate should lack documentation.
#![cfg_attr(not(test), deny(missing_docs))]
#[cfg(any(feature = "wasm", feature = "napi"))]
extern crate uniffi_ubrn as uniffi;
uniffi::setup_scaffolding!("core_crypto_ffi");
mod bundles;
mod bytes_wrapper;
mod ciphersuite;
mod client_id;
mod core_crypto;
mod core_crypto_context;
mod credential;
mod credential_ref;
mod credential_type;
mod database;
mod decrypted_message;
mod e2ei;
mod ephemeral;
mod error;
mod identity;
mod key_package;
mod metadata;
mod pki_env;
mod proteus;
mod signature_scheme;
mod timestamp;
pub use bundles::{
commit::CommitBundle, group_info::GroupInfoBundle, proteus_auto_prekey::ProteusAutoPrekeyBundle,
welcome::WelcomeBundle,
};
pub use ciphersuite::{Ciphersuite, ciphersuite_default, ciphersuite_from_u16};
pub use client_id::ClientId;
#[cfg(not(target_os = "unknown"))]
pub use core_crypto::command::transaction_helper::TransactionHelper;
pub(crate) use core_crypto::e2ei::identities::UserIdentities;
pub use core_crypto::{
CoreCryptoFfi,
command::CoreCryptoCommand,
conversation::ConversationId,
core_crypto_new,
epoch_observer::EpochObserver,
logger::{CoreCryptoLogLevel, CoreCryptoLogger, set_logger, set_max_log_level},
mls_transport::{MlsTransport, MlsTransportData, MlsTransportResponse},
};
pub use core_crypto_context::CoreCryptoContext;
pub use credential::Credential;
pub use credential_ref::CredentialRef;
pub use credential_type::CredentialType;
pub use database::{Database, DatabaseKey, migrate_database_key_type_to_bytes};
#[cfg(not(any(feature = "wasm", target_os = "unknown")))]
pub use database::{export_database_copy, in_memory_database, open_database};
pub use decrypted_message::{BufferedDecryptedMessage, DecryptedMessage};
pub use e2ei::E2eiConversationState;
pub use ephemeral::{HistorySecret, core_crypto_history_client};
#[cfg(feature = "proteus")]
pub use error::proteus::ProteusError;
pub use error::{CoreCryptoError, CoreCryptoResult, mls::MlsError};
pub use identity::{
wire::{DeviceStatus, WireIdentity},
x509::X509Identity,
};
pub use key_package::{Keypackage, KeypackageRef};
pub use metadata::{BuildMetadata, build_metadata, version};
#[cfg(not(any(feature = "wasm", target_os = "unknown")))]
pub use pki_env::create_pki_environment;
pub use pki_env::{HttpHeader, HttpMethod, HttpResponse, PkiEnvironment, PkiEnvironmentHooks};
pub use signature_scheme::SignatureScheme;
pub use timestamp::Timestamp;