jaulib v1.3.8
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
Secure Memory

Secure Memory utilities. More...

Functions

void jau::zero_bytes_sec (void *s, size_t n) noexcept __attrdecl_no_optimize__
 Wrapper to ::explicit_bzero(), ::bzero() or ::memset(), whichever is available in that order.
 

Detailed Description

Secure Memory utilities.

Function Documentation

◆ zero_bytes_sec()

void jau::zero_bytes_sec ( void * s,
size_t n )
noexcept

Wrapper to ::explicit_bzero(), ::bzero() or ::memset(), whichever is available in that order.

Implementation shall not be optimized away for security reasons.

Definition at line 49 of file basic_types.cpp.

Here is the caller graph for this function: