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
#![deny(missing_debug_implementations, missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
pub mod encrypt;
pub mod key;
pub mod serialize;
pub mod shared_key;
pub mod traits;
mod random;
cfg_if::cfg_if! {
if #[cfg(feature = "std")] {
use once_cell::sync::Lazy;
use std::sync::{MutexGuard, Mutex};
} else {
use spin::{Lazy, MutexGuard, Mutex};
}
}
pub use serde_encrypt_core::{
encrypt::encrypted_message::EncryptedMessage,
error::{Error, ErrorKind},
key::{
as_shared_key::AsSharedKey,
combined_key::{ReceiverCombinedKey, SenderCombinedKey},
key_pair::{ReceiverKeyPairCore, SenderKeyPairCore},
},
};