2020-02-24 16:19:00 +00:00
|
|
|
// Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2020-04-29 07:48:00 +00:00
|
|
|
//! This is the encryption part of the matrix-sdk. It contains a state machine
|
|
|
|
//! that will aid in adding encryption support to a client library.
|
|
|
|
|
2020-04-30 15:10:12 +00:00
|
|
|
#![deny(
|
|
|
|
missing_debug_implementations,
|
2020-05-05 13:29:25 +00:00
|
|
|
dead_code,
|
2020-04-30 15:10:12 +00:00
|
|
|
missing_docs,
|
|
|
|
trivial_casts,
|
|
|
|
trivial_numeric_casts,
|
|
|
|
unused_extern_crates,
|
|
|
|
unused_import_braces,
|
|
|
|
unused_qualifications
|
|
|
|
)]
|
2020-08-13 09:06:26 +00:00
|
|
|
#![cfg_attr(feature = "docs", feature(doc_cfg))]
|
2020-04-30 15:10:12 +00:00
|
|
|
|
2020-04-21 09:03:28 +00:00
|
|
|
mod error;
|
2020-09-14 15:06:36 +00:00
|
|
|
mod file_encryption;
|
2020-09-04 08:49:11 +00:00
|
|
|
mod identities;
|
2020-09-17 12:16:43 +00:00
|
|
|
mod key_request;
|
2020-02-25 13:24:18 +00:00
|
|
|
mod machine;
|
2020-08-21 13:06:54 +00:00
|
|
|
pub mod olm;
|
2020-08-21 11:34:25 +00:00
|
|
|
mod requests;
|
2020-10-08 12:41:34 +00:00
|
|
|
mod session_manager;
|
2020-09-04 10:42:40 +00:00
|
|
|
pub mod store;
|
2020-07-14 15:04:08 +00:00
|
|
|
mod verification;
|
2020-03-11 09:06:33 +00:00
|
|
|
|
2020-04-30 11:16:10 +00:00
|
|
|
pub use error::{MegolmError, OlmError};
|
2020-09-16 10:05:44 +00:00
|
|
|
pub use file_encryption::{
|
|
|
|
decrypt_key_export, encrypt_key_export, AttachmentDecryptor, AttachmentEncryptor,
|
|
|
|
DecryptorError,
|
|
|
|
};
|
2020-09-04 08:49:11 +00:00
|
|
|
pub use identities::{
|
|
|
|
Device, LocalTrust, OwnUserIdentity, ReadOnlyDevice, UserDevices, UserIdentities, UserIdentity,
|
|
|
|
};
|
2020-08-21 12:40:49 +00:00
|
|
|
pub use machine::OlmMachine;
|
2020-08-21 13:06:54 +00:00
|
|
|
pub use olm::EncryptionSettings;
|
2020-09-29 10:03:41 +00:00
|
|
|
pub(crate) use olm::ReadOnlyAccount;
|
2020-09-12 01:19:22 +00:00
|
|
|
pub use requests::{
|
|
|
|
IncomingResponse, KeysQueryRequest, OutgoingRequest, OutgoingRequests, ToDeviceRequest,
|
|
|
|
};
|
2020-07-28 09:29:13 +00:00
|
|
|
pub use verification::Sas;
|