Module cloneable

Module cloneable 

Source
Expand description

Cloneable secret types (requires the zeroize feature). Provides wrappers that can be safely duplicated while maintaining security guarantees. Cloneable secret primitives for handling sensitive data that can be safely duplicated.

This module provides types that wrap sensitive data (arrays, vectors, and strings) in a way that allows controlled cloning while ensuring the data is properly zeroized when dropped. These types are only available when the “zeroize” feature is enabled.

The types in this module implement the CloneSafe trait, which ensures that only types safe for secret duplication are used. This prevents accidental leaks of sensitive data through unsafe cloning operations.

Re-exports§

pub use array::CloneableArray;
pub use marker::CloneSafe;
pub use string::CloneableString;
pub use vec::CloneableVec;

Modules§

array
marker
Marker trait and implementations for types that can be safely cloned as secrets.
string
vec