sodium_memzero

Zeroing memory.

After use, sensitive data should be overwritten, but memset() and hand-written code can be silently stripped out by an optimizing compiler or by the linker. The sodium_memzero() function tries to effectively zero len bytes starting at pnt, even if optimizations are being applied to the code.

extern (C) @nogc nothrow pure
void
sodium_memzero
(
void* pnt
,
const size_t len
)

See Also

Meta