Skip to main content

scrub_stack

Function scrub_stack 

Source
pub fn scrub_stack()
Expand description

Overwrites the stack region below the caller’s frame so secrets left there by callees (Argon2 temporaries, a cipher value before it moved to the heap) do not linger. Best effort: the language guarantees nothing about frame layout, so the key-zeroization test in this module measures the result rather than assuming it.