libpep 0.12.0

Library for polymorphic encryption and pseudonymization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Padding mechanisms for PEP data encoding.
//!
//! This module provides two distinct types of padding for PEP data:
//!
//! - **Internal Padding (PKCS#7)**: See the [`internal`] module for PKCS#7 padding used for single-block encoding.
//! - **External Padding**: See the [`external`] module for padding blocks used for batch unlinkability.
//!
//! Both padding types are completely unambiguous and can encode any possible byte sequence.

pub mod internal;

#[cfg(feature = "long")]
pub mod external;

// Re-export the Padded trait for convenience
pub use internal::Padded;