StaticFastZeroizable

Trait StaticFastZeroizable 

Source
pub trait StaticFastZeroizable {
    // Required method
    fn fast_zeroize();
}
Expand description

Trait for static zeroization of global CipherBox instances.

Used by #[cipherbox(..., global = true)] to expose fast_zeroize() on the generated module. Requires trait import for consistency with FastZeroizable.

§Example

use redoubt::codec::RedoubtCodec;
use redoubt::vault::cipherbox;
use redoubt::zero::{RedoubtZero, StaticFastZeroizable};

#[cipherbox(SensitiveDataBox, global = true)]
#[derive(Default, RedoubtCodec, RedoubtZero)]
struct SensitiveData {
    // ...
}

SENSITIVE_DATA_BOX::fast_zeroize();

Required Methods§

Source

fn fast_zeroize()

Zeroizes the global instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§