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 the bytes of array a, even if optimizations are being applied to the code.

  1. alias sodium_memzero = deimos.sodium.utils.sodium_memzero
  2. void sodium_memzero(ubyte[] a)
    pragma(inline, true) @nogc nothrow pure @trusted
    void
    sodium_memzero
    (
    ubyte[] a
    )

See Also

Meta