Expand description
Zymic: a streaming Authenticated Encryption with Associated Data (AEAD) format.
This crate provides a compact frame-based format and supporting types for encrypting large streams (files, pipes) with integrity and authenticity. It is suitable for at-rest encryption on disk and for sequential or random access to encrypted data.
This crate may be used to encrypt data to be stored on disk.
§Getting Started
If you’re on std
, start with the stream
module and the
ZymicStream
type, which implements std::io::{Read, Write, Seek}
for file-like access. For embedded / no_std
environments, use FrameBuf
to build and parse encrypted frames
directly.
Re-exports§
pub use error::Error;
Modules§
- bytes
- A module for working with raw bytes.
- error
- Error types for the Zymic core crate.
- key
- A module for defining cryptographic key types.
- stream
- Zymic Stream
Macros§
- byte_
array - A convenience macro to create a
ByteArray<N>
from a literal array expression.
Structs§
- OsRng
os_rng
- An interface over the operating-system’s random data source
Traits§
- Deserialize
serde
- A data structure that can be deserialized from any data format supported by Serde.
- Serialize
serde
- A data structure that can be serialized into any data format supported by Serde.
- TryCrypto
Rng rand_core
- A marker trait over
TryRngCore
for securely unpredictable RNGs - TryRng
Core rand_core
- A potentially fallible variant of
RngCore
Derive Macros§
- Deserialize
serde
- Serialize
serde