Secure overwrite a buffer (possibly containing secret data) with zero‐bytes. The write operation will not be optimized out by the compiler.
Synopsis
Declared in <support/cleanse.h>
void
memory_cleanse(
void* ptr,
size_t len);
Parameters
Name |
Description |
ptr |
Pointer to the start of the buffer to overwrite. |
len |
Number of bytes to overwrite with zeros. |
Created with MrDocs