Skip to main content

Module alloc

Module alloc 

Source
Expand description

Exact-size initialized storage helpers for sensitive values.

These helpers do not lock pages, alter allocator behavior, or claim to protect memory from the operating system. Doing so would require native interfaces that are outside dcrypt’s implementation boundary.

Functions§

clear_box
Clear every initialized element before releasing a boxed slice.
zeroizing_box
Allocate an exact-size boxed slice of initialized values.