Type Alias SecureBox

Source
pub type SecureBox<T> = Box<T, SecureAlloc>;
Expand description

A flex-alloc Box which is backed by a secured allocator and keeps its contents in physical memory. When released, the allocated memory is securely zeroed.

This container should be converted into a ProtectedBox or ShieldedBox to protect secret data.

This type does NOT protect against accidental output of contained values using the Debug trait.

When possible, prefer initialization of the protected container using the ProtectedInit or ProtectedInitSlice traits.

Aliased Typeยง

pub struct SecureBox<T> { /* private fields */ }