mirror of
https://github.com/element-hq/element-android
synced 2024-12-21 16:55:06 +03:00
36 lines
1.2 KiB
Rust
36 lines
1.2 KiB
Rust
mod device;
|
|
mod error;
|
|
mod logger;
|
|
mod machine;
|
|
mod responses;
|
|
|
|
pub use device::Device;
|
|
pub use error::{CryptoStoreError, DecryptionError, KeyImportError, MachineCreationError};
|
|
pub use logger::{set_logger, Logger};
|
|
pub use machine::{
|
|
CancelInfo, KeyRequestPair, OlmMachine, QrCode, RequestVerificationResult, Sas, ScanResult,
|
|
StartSasResult, Verification, VerificationRequest,
|
|
};
|
|
pub use responses::{
|
|
DeviceLists, KeysImportResult, OutgoingVerificationRequest, Request, RequestType,
|
|
};
|
|
|
|
pub trait ProgressListener {
|
|
fn on_progress(&self, progress: i32, total: i32);
|
|
}
|
|
|
|
/// An event that was successfully decrypted.
|
|
pub struct DecryptedEvent {
|
|
/// The decrypted version of the event.
|
|
pub clear_event: String,
|
|
/// The claimed curve25519 key of the sender.
|
|
pub sender_curve25519_key: String,
|
|
/// The claimed ed25519 key of the sender.
|
|
pub claimed_ed25519_key: Option<String>,
|
|
/// The curve25519 chain of the senders that forwarded the Megolm decryption
|
|
/// key to us. Is empty if the key came directly from the sender of the
|
|
/// event.
|
|
pub forwarding_curve25519_chain: Vec<String>,
|
|
}
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/olm.uniffi.rs"));
|