1#![no_std]
2#![forbid(unsafe_op_in_unsafe_fn)]
3
4extern crate alloc;
5
6#[cfg(feature = "std")]
7extern crate std;
8
9pub mod cipher;
10pub mod consts;
11pub mod envelope;
12pub mod error;
13pub mod hash;
14pub mod nonce;
15pub mod types;
16
17pub use error::{CryptoError, CryptoErrorKind};
18pub use types::{CipherSuite, EnvelopeHeader, EnvelopeMethod, Flags};
19
20pub use envelope::{is_envelope, open_envelope, parse_envelope_header, seal_downlink, seal_raw, seal_uplink};
21pub use hash::{bytes_to_hex, derive_auth_hash, derive_device_hash, derive_key, hex_to_bytes};