redoubt_codec_core/
lib.rs

1// Copyright (c) 2025-2026 Federico Hoerth <memparanoid@gmail.com>
2// SPDX-License-Identifier: GPL-3.0-only
3// See LICENSE in the repository root for full license text.
4
5//! High-performance secure codec with memory zeroization.
6//!
7//! ## License
8//!
9//! GPL-3.0-only
10
11#![cfg_attr(not(test), no_std)]
12
13extern crate alloc;
14
15#[cfg(test)]
16mod tests;
17
18mod blankets;
19mod codec_buffer;
20mod decode_buffer;
21mod error;
22mod primitives;
23mod traits;
24mod zeroizing;
25
26pub mod collections;
27
28#[cfg(any(test, feature = "test-utils"))]
29pub mod support;
30
31pub use codec_buffer::RedoubtCodecBuffer;
32pub use error::{DecodeError, EncodeError, OverflowError};
33pub use traits::{BytesRequired, Decode, DecodeBuffer, DecodeZeroize, Encode, EncodeZeroize};