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 (from the traits module), 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 string::CloneableString;pub use vec::CloneableVec;