Skip to main content

Module secret

Module secret 

Source
Expand description

Secret data types that invoke zeroization for owned storage

This module provides type-safe wrappers that invoke explicit clearing for initialized storage they own. Software zeroization cannot erase caller, compiler/register, allocator, swap, crash-dump, or already-freed copies.

Structs§

EphemeralSecret
Ephemeral secret that invokes explicit clearing on drop.
SecretBuffer
A fixed-size byte array that explicitly clears its owned storage on drop.
SecretVec
Exact-size owned bytes whose initialized storage is explicitly cleared on drop.
ZeroizeGuard
Guard type that invokes a value’s Zeroize implementation when dropped.

Traits§

SecureZeroingType
Trait for types that explicitly clear owned storage and preserve that behavior when cloned.