Skip to main content

ZeroizingBytes

Type Alias ZeroizingBytes 

Source
pub type ZeroizingBytes = Zeroizing<Box<[u8]>>;
Expand description

An exact-size byte allocation that clears every initialized byte on drop.

Unlike Zeroizing<Vec<u8>>, this type has no inaccessible spare capacity. New secret-returning APIs should prefer this representation.

Aliased Typeยง

pub struct ZeroizingBytes(/* private fields */);